OSDN Git Service

vxlan: Improve support for header flags
authorTom Herbert <therbert@google.com>
Thu, 8 Jan 2015 20:31:18 +0000 (12:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jan 2015 21:05:01 +0000 (16:05 -0500)
commit3bf3947526c1053ddf2523f261395d682718f56c
tree5919aa9d9cb34576a14d02d4753390ee71a6a9d6
parenteee2f04b801ebc95da16f91fef029a083ba1a216
vxlan: Improve support for header flags

This patch cleans up the header flags of VXLAN in anticipation of
defining some new ones:

- Move header related definitions from vxlan.c to vxlan.h
- Change VXLAN_FLAGS to be VXLAN_HF_VNI (only currently defined flag)
- Move check for unknown flags to after we find vxlan_sock, this
  assumes that some flags may be processed based on tunnel
  configuration
- Add a comment about why the stack treating unknown set flags as an
  error instead of ignoring them

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
include/net/vxlan.h