]> git.baikalelectronics.ru Git - kernel.git/commit
vlan: Set correct source MAC address with TX VLAN offload enabled
authorPeter Boström <peter.bostrom@netrounds.com>
Mon, 10 Mar 2014 15:17:15 +0000 (16:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Mar 2014 02:21:51 +0000 (22:21 -0400)
commite9ccaee9b60c67a4721cb86f8c0508ae9df1f500
tree56286f22988b319b591045e787558be30a1e1de4
parent83f0dfc1ee1a66a278bf1ac2687c3213c697abe5
vlan: Set correct source MAC address with TX VLAN offload enabled

With TX VLAN offload enabled the source MAC address for frames sent using the
VLAN interface is currently set to the address of the real interface. This is
wrong since the VLAN interface may be configured with a different address.

The bug was introduced in commit f9cad54d8aa70383ee377def7de2a87334be3d86
("vlan: Fix header ops passthru when doing TX VLAN offload.").

This patch sets the source address before calling the create function of the
real interface.

Signed-off-by: Peter Boström <peter.bostrom@netrounds.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_dev.c