summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/emulex/benet/be.h
diff options
context:
space:
mode:
authorSuresh Reddy2016-09-07 16:27:52 +0200
committerDavid S. Miller2016-09-08 07:44:56 +0200
commit988d44b1636d7f608bd7926493e0f61a034b61db (patch)
tree25e065e869aa311b8d5f65b2d6a4a1b17c09c022 /drivers/net/ethernet/emulex/benet/be.h
parentbe2net: Add privilege level check for OPCODE_COMMON_GET_EXT_FAT_CAPABILITIES ... (diff)
downloadkernel-qcow2-linux-988d44b1636d7f608bd7926493e0f61a034b61db.tar.gz
kernel-qcow2-linux-988d44b1636d7f608bd7926493e0f61a034b61db.tar.xz
kernel-qcow2-linux-988d44b1636d7f608bd7926493e0f61a034b61db.zip
be2net: Avoid redundant addition of mac address in HW
If a mac address is added to the uc_list and later the same mac address is added via ndo_set_mac_address() or vice versa, the driver does not detect this condition and tries to add it again. This results in a mac address collision error when the FW rejects it. Fix this by checking if the given mac address is present in uc_list while setting the device mac address and vice versa. Similarly skip deletion if the address is still in use in the other form. Signed-off-by: Suresh Reddy <Suresh.Reddy@broadcom.com> Signed-off-by: Sathya Perla <sathya.perla@broadcom.com> Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be.h')
0 files changed, 0 insertions, 0 deletions