mirror_ubuntu-kernels/drivers/net/ethernet/freescale/enetc
Wei Fang 299efdc238 net: enetc: check the index of the SFI rather than the handle
We should check whether the current SFI (Stream Filter Instance) table
is full before creating a new SFI entry. However, the previous logic
checks the handle by mistake and might lead to unpredictable behavior.

Fixes: 888ae5a395 ("net: enetc: add tc flower psfp offload driver")
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-05-05 09:32:36 +01:00
..
enetc_cbdr.c net: enetc: build common object files into a separate module 2023-01-23 13:13:08 +00:00
enetc_ethtool.c net: enetc: include MAC Merge / FP registers in register dump 2023-04-20 20:03:21 -07:00
enetc_hw.h net: enetc: only commit preemptible TCs to hardware when MM TX is active 2023-04-20 20:03:21 -07:00
enetc_ierb.c net: ethernet: freescale: enetc: Drop empty platform remove function 2022-12-30 07:28:49 +00:00
enetc_ierb.h net: update NXP copyright text 2021-09-17 13:52:17 +01:00
enetc_mdio.c enetc: Separate C22 and C45 transactions 2023-01-13 21:40:54 -08:00
enetc_msg.c enetc: Add vf to pf messaging support 2019-01-24 21:55:53 -08:00
enetc_pci_mdio.c enetc: Separate C22 and C45 transactions 2023-01-13 21:40:54 -08:00
enetc_pf.c bpf-next-for-netdev 2023-02-10 17:51:27 -08:00
enetc_pf.h net: phy: lynx: refactor Lynx PCS module to use generic phylink_pcs 2022-01-02 18:48:47 +00:00
enetc_ptp.c net: enetc: Remove useless DMA-32 fallback configuration 2022-01-09 16:52:20 -08:00
enetc_qos.c net: enetc: check the index of the SFI rather than the handle 2023-05-05 09:32:36 +01:00
enetc_vf.c net: enetc: deny offload of tc-based TSN features on VF interfaces 2022-09-20 11:27:10 -07:00
enetc.c net: enetc: only commit preemptible TCs to hardware when MM TX is active 2023-04-20 20:03:21 -07:00
enetc.h net: enetc: only commit preemptible TCs to hardware when MM TX is active 2023-04-20 20:03:21 -07:00
Kconfig net: ethernet: Add missing depends on MDIO_DEVRES 2023-04-12 20:38:48 -07:00
Makefile net: enetc: build common object files into a separate module 2023-01-23 13:13:08 +00:00