vxlan: Update hard_header_len based on lowerdev when instantiating VXLAN
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 13 Nov 2012 13:10:59 +0000 (13:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Nov 2012 23:19:50 +0000 (18:19 -0500)
commit1ba56fb45a927d083f655302e75a1911a75b5da6
treed62c161e151fd65e4da880b8901604d89ea96572
parenteb5ce43997b10dd07a63befeb26778d996c5a356
vxlan: Update hard_header_len based on lowerdev when instantiating VXLAN

In the event of a VXLAN device being linked to a device that has a
hard_header_len greater than that of standard ethernet we could end up with
the hard_header_len not being large enough for outgoing frames.  In order to
prevent this we should update the length when a lowerdev is provided.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c