commit | 54bfd872bf16d40b61bd0cd9b769b2fef67dd272 | [log] [tgz] |
---|---|---|
author | Jiri Benc <jbenc@redhat.com> | Tue Feb 16 21:58:58 2016 +0100 |
committer | David S. Miller <davem@davemloft.net> | Wed Feb 17 23:52:11 2016 -0500 |
tree | f7be552f244d9be7eccbda77cf686f43be157739 | |
parent | d4ac05ff3697e036dcb0e2e284c5f7eb77cc0966 [diff] |
vxlan: keep flags and vni in network byte order Prevent repeated conversions from and to network order in the fast path. To achieve this, define all flag constants in big endian order and store VNI as __be32. To prevent confusion between the actual VNI value and the VNI field from the header (which contains additional reserved byte), strictly distinguish between "vni" and "vni_field". Signed-off-by: Jiri Benc <jbenc@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>