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)
commite3a7ae2c1819aa210a38f80f6bf13322652c8211
tree75cbeb4866aee1e1d8c75148200795a17c1f657a
parent106df1e3594c710c74348883a4942f65651781ff
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