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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Apr 2014 00:13:16 +0000 (17:13 -0700)
commit711d9170450f00ac8e5c3467948900d124993fe0
treeb4dde7d8772b69ef33a8a206e3959b73ef2f7048
parentc3363b2d9eb62338b918426a080fa554c5323c7f
vlan: Set correct source MAC address with TX VLAN offload enabled

[ Upstream commit dd38743b4cc2f86be250eaf156cf113ba3dd531a ]

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 2205369a314e12fcec4781cc73ac9c08fc2b47de
("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/8021q/vlan_dev.c