]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite2b54cb8b44227875a1a4a65d58fb668947b02ec
treed62c161e151fd65e4da880b8901604d89ea96572
parent62b9a589b2ef92ccb36bc86697bc7cf8d571eb7b
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