linux/drivers/net/ethernet
Grzegorz Nitka 1c54c83993 ice: enable/disable switchdev when managing VFs
Only way to enable switchdev is to create VFs when the eswitch
mode is set to switchdev. Check if correct mode is set and
enable switchdev in function which creating VFs.

Disable switchdev when user change number of VFs to 0. Changing
eswitch mode back to legacy when VFs are created in switchdev
mode isn't allowed.

As switchdev takes care of managing filter rules, adding new
rules on VF is blocked.

In case of resetting VF driver has to update pointer in ice_repr
struct, because after reset VSI related things can change.

Co-developed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: Grzegorz Nitka <grzegorz.nitka@intel.com>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2021-10-07 10:41:42 -07:00
..
3com ethernet: use eth_hw_addr_set() - casts 2021-10-02 14:18:26 +01:00
8390 ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
actions ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
adaptec
aeroflex ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
agere ethernet: use eth_hw_addr_set() instead of ether_addr_copy() 2021-10-02 14:18:25 +01:00
alacritech ethernet: use eth_hw_addr_set() instead of ether_addr_copy() 2021-10-02 14:18:25 +01:00
allwinner ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
alteon ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
altera ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
amazon ethernet: use eth_hw_addr_set() instead of ether_addr_copy() 2021-10-02 14:18:25 +01:00
amd of: net: move of_net under net/ 2021-10-07 13:39:51 +01:00
apm ethernet: use device_get_ethdev_address() 2021-10-07 13:39:51 +01:00
apple
aquantia ethernet: use eth_hw_addr_set() instead of ether_addr_copy() 2021-10-02 14:18:25 +01:00
arc ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
atheros ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
broadcom net: broadcom: bcm4908_enet: use kcalloc() instead of kzalloc() 2021-10-07 09:08:16 -07:00
brocade ethernet: use eth_hw_addr_set() instead of ether_addr_copy() 2021-10-02 14:18:25 +01:00
cadence ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
calxeda ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
cavium eth: fwnode: remove the addr len from mac helpers 2021-10-07 13:39:51 +01:00
chelsio ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
cirrus ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
cisco ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
cortina ethernet: use eth_hw_addr_set() - casts 2021-10-02 14:18:26 +01:00
davicom ethernet: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
dec ethernet: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
dlink ethernet: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
emulex ethernet: use eth_hw_addr_set() instead of ether_addr_copy() 2021-10-02 14:18:25 +01:00
ezchip ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
faraday ethernet: make more use of device_get_ethdev_address() 2021-10-07 13:39:51 +01:00
freescale ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
fujitsu
google ethernet: use eth_hw_addr_set() instead of ether_addr_copy() 2021-10-02 14:18:25 +01:00
hisilicon ethernet: use device_get_ethdev_address() 2021-10-07 13:39:51 +01:00
huawei ethernet: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
i825xx net: i825xx: Use absolute_pointer for memcpy from fixed memory location 2021-09-15 12:04:28 -07:00
ibm ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
intel ice: enable/disable switchdev when managing VFs 2021-10-07 10:41:42 -07:00
litex ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
marvell eth: fwnode: remove the addr len from mac helpers 2021-10-07 13:39:51 +01:00
mediatek ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
mellanox mlxsw: Add support for transceiver module extended state 2021-10-06 17:47:50 -07:00
micrel ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
microchip ethernet: make more use of device_get_ethdev_address() 2021-10-07 13:39:51 +01:00
microsoft net: mana: Use kcalloc() instead of kzalloc() 2021-10-07 09:08:24 -07:00
moxa ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
mscc of: net: move of_net under net/ 2021-10-07 13:39:51 +01:00
myricom ethernet: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
natsemi
neterion ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
netronome ethernet: use eth_hw_addr_set() instead of ether_addr_copy() 2021-10-02 14:18:25 +01:00
ni ethernet: use eth_hw_addr_set() instead of ether_addr_copy() 2021-10-02 14:18:25 +01:00
nvidia ethernet: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
nxp ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
oki-semi ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
packetengines
pasemi ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
pensando ionic: add lif param to ionic_qcq_disable 2021-10-02 14:00:22 +01:00
qlogic qed: Fix spelling mistake "ctx_bsaed" -> "ctx_based" 2021-10-06 15:25:04 +01:00
qualcomm ethernet: make more use of device_get_ethdev_address() 2021-10-07 13:39:51 +01:00
rdc r6040: Restore MDIO clock frequency after MAC reset 2021-09-10 10:00:08 +01:00
realtek ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
renesas ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
rocker ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
samsung ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
seeq ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
sfc ethernet: use eth_hw_addr_set() instead of ether_addr_copy() 2021-10-02 14:18:25 +01:00
sgi ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
silan
sis net: sis: Fix a function name in comments 2021-09-27 12:44:33 +01:00
smsc eth: fwnode: remove the addr len from mac helpers 2021-10-07 13:39:51 +01:00
socionext ethernet: make more use of device_get_ethdev_address() 2021-10-07 13:39:51 +01:00
stmicro net: stmmac: selftests: Use kcalloc() instead of kzalloc() 2021-10-07 09:08:33 -07:00
sun ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
synopsys ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
tehuti ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
ti ethernet: ti: cpts: Use devm_kcalloc() instead of devm_kzalloc() 2021-10-07 09:08:43 -07:00
toshiba ethernet: fix up ps3_gelic_net.c for "ethernet: use eth_hw_addr_set()" 2021-10-05 18:52:16 -07:00
tundra
via
wiznet ethernet: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
xilinx ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
xircom
xscale ethernet: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
dnet.c
dnet.h
ec_bhf.c
ethoc.c ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
fealnx.c
jme.c ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
jme.h
Kconfig
korina.c ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
lantiq_etop.c net: lantiq: configure the burst length in ethernet drivers 2021-09-15 11:02:01 +01:00
lantiq_xrx200.c ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
Makefile