diff options
| author | Jeffrey Huang <[email protected]> | 2015-12-02 06:54:07 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-12-03 20:07:13 +0000 |
| commit | bdd4347b33f480187b44699cf1caac9400496d6d (patch) | |
| tree | ae77e7383929fec2fd84b0af4828539d5fc07fae /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | bnxt_en: Fixed incorrect implementation of ndo_set_mac_address (diff) | |
| download | kernel-bdd4347b33f480187b44699cf1caac9400496d6d.tar.gz kernel-bdd4347b33f480187b44699cf1caac9400496d6d.zip | |
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 <[email protected]>
Signed-off-by: Michael Chan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
