1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/emulex/benet
Ivan Vecera 3439352916 be2net: fix MAC addr setting on privileged BE3 VFs
During interface opening MAC address stored in netdev->dev_addr is
programmed in the HW with exception of BE3 VFs where the initial
MAC is programmed by parent PF. This is OK when MAC address is not
changed when an interfaces is down. In this case the requested MAC is
stored to netdev->dev_addr and later is stored into HW during opening.
But this is not done for all BE3 VFs so the NIC HW does not know
anything about this change and all traffic is filtered.

This is the case of bonding if fail_over_mac == 0 where the MACs of
the slaves are changed while they are down.

The be2net behavior is too restrictive because if a BE3 VF has
the FILTMGMT privilege then it is able to modify its MAC without
any restriction.

To solve the described problem the driver should take care about these
privileged BE3 VFs so the MAC is programmed during opening. And by
contrast unpriviled BE3 VFs should not be allowed to change its MAC
in any case.

Cc: Sathya Perla <sathya.perla@broadcom.com>
Cc: Ajit Khaparde <ajit.khaparde@broadcom.com>
Cc: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Cc: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Ivan Vecera <cera@cera.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-16 12:28:33 -05:00
..
be.h be2net: Increase skb headroom size to 256 bytes 2016-12-21 13:23:05 -05:00
be_cmds.c be2net: fix status check in be_cmd_pmac_add() 2017-01-16 12:28:33 -05:00
be_cmds.h be2net: Provide an alternate way to read pf_num for BEx chips 2016-10-09 09:30:38 -04:00
be_ethtool.c be2net: Support UE recovery in BEx/Skyhawk adapters 2016-09-07 22:44:55 -07:00
be_hw.h be2net: Update Copyright string in be_hw.h 2016-10-09 09:30:38 -04:00
be_main.c be2net: fix MAC addr setting on privileged BE3 VFs 2017-01-16 12:28:33 -05:00
be_roce.c be2net: Change copyright markings in source files 2016-06-27 04:06:24 -04:00
be_roce.h be2net: Change copyright markings in source files 2016-06-27 04:06:24 -04:00
Kconfig benet: Replace ndo_add/del_vxlan_port with ndo_add/del_udp_enc_port 2016-06-17 20:23:30 -07:00
Makefile be2net: Add functionality to support RoCE driver 2012-05-08 11:17:47 -07:00