]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: Changing MAC Address of a VF was broken.
authorSomnath Kotur <somnath.kotur@emulex.com>
Thu, 27 Oct 2011 07:14:05 +0000 (07:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Oct 2011 03:16:20 +0000 (23:16 -0400)
commit30248c47a8866a5060cc0c95e72f24bd10400f58
tree75cbeb4866aee1e1d8c75148200795a17c1f657a
parent92b75f5955fcacc95a3dbfd28cac5f0c94355b8a
be2net: Changing MAC Address of a VF was broken.

Allow for MAC Address change of VF(SR-IOV case) on the fly- First add and then
delete MAC Address to allow for 'out of pool' errors.
When MAC Addr configured from a VM, the MAC on the NIC will aleady have
the supplied MAC,so just copy the supplied MAC to the netdev structure
before returning success to the stack

Signed-off-by: Somnath Kotur <somnath.kotur@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_main.c