Jeffrey Huang bdd4347b33 bnxt_en: enforce proper storing of MAC address
For PF, the bp->pf.mac_addr always holds the permanent MAC
addr assigned by the HW.  For VF, the bp->vf.mac_addr always
holds the administrator assigned VF MAC addr. The random
generated VF MAC addr should never get stored to bp->vf.mac_addr.
This way, when the VF wants to change the MAC address, we can tell
if the adminstrator has already set it and disallow the VF from
changing it.

v2: Fix compile error if CONFIG_BNXT_SRIOV is not set.

Signed-off-by: Jeffrey Huang <huangjw@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-12-03 15:07:13 -05:00
..
2015-09-29 21:11:12 -07:00
2015-09-29 21:11:13 -07:00
2015-09-29 13:49:53 -07:00
2015-09-08 22:44:42 -07:00
2015-11-18 14:58:03 -05:00
2015-11-05 13:15:12 -08:00
2015-11-10 15:39:03 -05:00
2015-11-18 22:03:53 -05:00
2015-11-06 14:22:15 -08:00