Due to the complexity of struct vxlanhdr, protect against unwanted and undesired changes by failing the build if the size of the struct changes.
Signed-off-by: Thomas Graf <tg...@suug.ch> --- drivers/net/vxlan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 2b75c62..293d524 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -2842,6 +2842,8 @@ static int __init vxlan_init_module(void) { int rc; + BUILD_BUG_ON(sizeof(struct vxlanhdr) != 8); + vxlan_wq = alloc_workqueue("vxlan", 0, 0); if (!vxlan_wq) return -ENOMEM; -- 1.9.3 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev