mirror_ubuntu-kernels/drivers/net/ethernet
Michal Swiatkowski e4c46abc72 ice: remove VF pointer reference in eswitch code
Make eswitch code generic by removing VF pointer reference in functions.
It is needed to support eswitch mode for other type of devices.

Previously queue id used for Rx was based on VF number. Use ::q_id saved
in port representor instead.

After adding or removing port representor ::q_id value can change. It
isn't good idea to iterate over representors list using this value.
Use xa_find starting from the first one instead to get next port
representor to remap.

The number of port representors has to be equal to ::num_rx/tx_q. Warn if
it isn't true.

Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tested-by: Sujai Buvaneswaran <sujai.buvaneswaran@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2023-11-13 11:42:14 -08:00
..
3com
8390 net: ethernet: 8390: Convert to platform remove callback returning void 2023-09-20 09:06:37 +01:00
actions net: ethernet: actions: Convert to platform remove callback returning void 2023-09-20 09:06:37 +01:00
adaptec
adi net: ethernet: adi: adin1110: Fix uninitialized variable 2023-10-21 11:54:42 +01:00
aeroflex net: ethernet: aeroflex: Convert to platform remove callback returning void 2023-09-20 09:06:37 +01:00
agere et131x: Use pci_dev_id() to simplify the code 2023-08-13 12:30:39 +01:00
alacritech net: ethernet: slicoss: remove redundant increment of pointer data 2023-07-28 15:37:08 -07:00
allwinner net: ethernet: allwinner: Convert to platform remove callback returning void 2023-09-20 09:06:37 +01:00
alteon
altera net: ethernet: Use device_get_match_data() 2023-10-13 10:04:53 +01:00
amazon net: Tree wide: Replace xdp_do_flush_map() with xdp_do_flush(). 2023-10-03 07:34:51 -07:00
amd amd/pds_core: core: No need for Null pointer check before kfree 2023-10-25 10:34:28 +01:00
apm Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-10-26 13:46:28 -07:00
apple net: ethernet: apple: Convert to platform remove callback returning void 2023-09-20 09:06:37 +01:00
aquantia net: atlantic: Remove unnecessary (void*) conversions 2023-07-18 19:00:47 -07:00
arc net: ethernet: arc: Convert to platform remove callback returning void 2023-09-20 09:06:37 +01:00
asix net: ax88796c: replace deprecated strncpy with strscpy 2023-10-06 15:55:29 -07:00
atheros netdev: use napi_schedule bool instead of napi_schedule_prep/__napi_schedule 2023-10-11 17:28:06 -07:00
broadcom tg3: Fix the TX ring stall 2023-11-07 22:19:16 +00:00
brocade asm-generic updates for v6.7 2023-11-01 15:28:33 -10:00
cadence net: ethernet: cadence: Convert to platform remove callback returning void 2023-09-20 09:06:38 +01:00
calxeda net: ethernet: calxeda: Convert to platform remove callback returning void 2023-09-20 09:06:38 +01:00
cavium cavium/liquidio: replace deprecated strncpy with strscpy 2023-10-09 19:43:14 -07:00
chelsio This update includes the following changes: 2023-11-02 16:15:30 -10:00
cirrus net: ethernet: cirrus: Convert to platform remove callback returning void 2023-09-20 09:06:38 +01:00
cisco
cortina net: ethernet: cortina: Convert to platform remove callback returning void 2023-09-20 09:06:38 +01:00
davicom net: ethernet: davicom: Convert to platform remove callback returning void 2023-09-20 09:06:38 +01:00
dec net: tulip: Annotate struct mediatable with __counted_by 2023-10-02 11:24:55 -07:00
dlink
emulex rtnetlink: remove redundant checks for nlattr IFLA_BRIDGE_MODE 2023-08-08 15:10:37 -07:00
engleder tsnep: Fix tsnep_request_irq() format-overflow warning 2023-10-24 13:05:28 -07:00
ezchip netdev: replace napi_reschedule with napi_schedule 2023-10-11 17:28:06 -07:00
faraday net: ethernet: faraday: Convert to platform remove callback returning void 2023-09-20 09:06:38 +01:00
freescale net: enetc: shorten enetc_setup_xdp_prog() error message to fit NETLINK_MAX_FMTMSG_LEN 2023-11-07 18:57:16 -08:00
fujitsu
fungible eth: add missing xdp.h includes in drivers 2023-08-03 08:38:07 -07:00
google Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-10-19 13:29:01 -07:00
hisilicon net: hns3: add some link modes for hisilicon device 2023-10-25 09:23:16 +01:00
huawei hinic: devlink health: use retained error fmsg API 2023-10-20 11:34:50 +01:00
i825xx net: ethernet: i825xx: Convert to platform remove callback returning void 2023-09-20 09:06:38 +01:00
ibm ibmvnic: replace deprecated strncpy with strscpy 2023-10-13 10:18:20 +01:00
intel ice: remove VF pointer reference in eswitch code 2023-11-13 11:42:14 -08:00
litex net: ethernet: litex: Convert to platform remove callback returning void 2023-09-20 09:06:39 +01:00
marvell octeontx2-pf: Free pending and dropped SQEs 2023-11-06 08:57:15 +00:00
mediatek net: ethernet: mtk_wed: remove wo pointer in wo_r32/wo_w32 signature 2023-10-24 17:08:46 -07:00
mellanox RDMA for v6.7 2023-11-02 15:20:30 -10:00
micrel net: ethernet: micrel: Convert to platform remove callback returning void 2023-09-20 09:06:39 +01:00
microchip net: microchip: lan743x: improve throughput with rx timestamp config 2023-10-24 09:16:08 +02:00
microsoft net: mana: Use xdp_set_features_flag instead of direct assignment 2023-10-27 15:39:29 -07:00
moxa net: ethernet: moxa:: Convert to platform remove callback returning void 2023-09-20 09:06:39 +01:00
mscc net: ethernet: mscc: Convert to platform remove callback returning void 2023-09-20 09:06:39 +01:00
myricom
natsemi net: ethernet: natsemi: Convert to platform remove callback returning void 2023-09-20 09:06:40 +01:00
neterion ethernet: s2io: Use ether_addr_to_u64() to convert ethernet address 2023-08-09 15:26:49 -07:00
netronome nfp: using napi_build_skb() to replace build_skb() 2023-10-27 14:48:13 -07:00
ni netdev: replace napi_reschedule with napi_schedule 2023-10-11 17:28:06 -07:00
nvidia
nxp net: ethernet: nxp: Convert to platform remove callback returning void 2023-09-20 09:06:40 +01:00
oki-semi
packetengines
pasemi
pensando ionic: replace deprecated strncpy with strscpy 2023-10-13 17:10:36 -07:00
qlogic asm-generic updates for v6.7 2023-11-01 15:28:33 -10:00
qualcomm net: ethernet: qualcomm: Convert to platform remove callback returning void 2023-09-20 09:06:40 +01:00
rdc
realtek r8169: respect userspace disabling IFF_MULTICAST 2023-11-07 18:55:56 -08:00
renesas net: ethernet: renesas: drop SoC names in Kconfig 2023-10-24 16:16:19 -07:00
rocker
samsung net: ethernet: samsung: Convert to platform remove callback returning void 2023-09-20 09:06:40 +01:00
seeq net: ethernet: seeq: Convert to platform remove callback returning void 2023-09-20 09:06:40 +01:00
sfc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-10-26 13:46:28 -07:00
sgi net: ethernet: sgi: Convert to platform remove callback returning void 2023-09-20 09:06:40 +01:00
silan
sis
smsc sh updates for v6.7 2023-11-02 15:34:59 -10:00
socionext net: Tree wide: Replace xdp_do_flush_map() with xdp_do_flush(). 2023-10-03 07:34:51 -07:00
stmicro net: stmmac: xgmac: Enable support for multiple Flexible PPS outputs 2023-11-03 09:13:55 +00:00
sun net: ethernet: sun: Convert to platform remove callback returning void 2023-09-20 09:06:41 +01:00
sunplus net: ethernet: sunplus: Convert to platform remove callback returning void 2023-09-20 09:06:41 +01:00
synopsys
tehuti
ti net: ti: icss-iep: fix setting counter value 2023-11-09 13:15:40 +01:00
toshiba Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-10-26 13:46:28 -07:00
tundra net: ethernet: tundra: Convert to platform remove callback returning void 2023-09-20 09:06:41 +01:00
vertexcom
via net: ethernet: via: Convert to platform remove callback returning void 2023-09-20 09:06:41 +01:00
wangxun net: wangxun: remove redundant kernel log 2023-10-18 17:57:36 -07:00
wiznet net: ethernet: wiznet: Use spi_get_device_match_data() 2023-10-13 10:05:49 +01:00
xilinx net: ethernet: xilinx: Drop kernel doc comment about return value 2023-10-01 14:00:27 +01:00
xircom
xscale net: xscale: Drop unused PHY number 2023-11-01 22:15:15 -07:00
dnet.c net: ethernet: dnet: Convert to platform remove callback returning void 2023-09-20 09:06:38 +01:00
dnet.h
ec_bhf.c
ethoc.c net: ethernet: ethoc: Convert to platform remove callback returning void 2023-09-20 09:06:38 +01:00
fealnx.c
jme.c
jme.h
Kconfig
korina.c net: ethernet: korina: Convert to platform remove callback returning void 2023-09-20 09:06:39 +01:00
lantiq_etop.c net: ethernet: lantiq_etop: Convert to platform remove callback returning void 2023-09-20 09:06:39 +01:00
lantiq_xrx200.c net: ethernet: lantiq_xrx200: Convert to platform remove callback returning void 2023-09-20 09:06:39 +01:00
Makefile