]> 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)
commit07dd00b9ac3b01b51d84d4bc1d8ab55d575cd418
tree75cbeb4866aee1e1d8c75148200795a17c1f657a
parent7673b81c392ecc74224e1b7b0d4950f9a12bd808
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