linux/drivers/net/ethernet
Junfeng Guo 29486b6df3 ice: add profile conflict check for AVF FDIR
Add profile conflict check while adding some FDIR rules to avoid
unexpected flow behavior, rules may have conflict including:
        IPv4 <---> {IPv4_UDP, IPv4_TCP, IPv4_SCTP}
        IPv6 <---> {IPv6_UDP, IPv6_TCP, IPv6_SCTP}

For example, when we create an FDIR rule for IPv4, this rule will work
on packets including IPv4, IPv4_UDP, IPv4_TCP and IPv4_SCTP. But if we
then create an FDIR rule for IPv4_UDP and then destroy it, the first
FDIR rule for IPv4 cannot work on pkt IPv4_UDP then.

To prevent this unexpected behavior, we add restriction in software
when creating FDIR rules by adding necessary profile conflict check.

Fixes: 1f7ea1cd6a ("ice: Enable FDIR Configure for AVF")
Signed-off-by: Junfeng Guo <junfeng.guo@intel.com>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2023-03-28 09:48:41 -07:00
..
3com
8390
actions net: Remove C45 check in C22 only MDIO bus drivers 2023-01-20 18:12:45 -08:00
adaptec
adi Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-01-27 22:56:18 -08:00
aeroflex ethernet: aeroflex: fix potential skb leak in greth_init_rings() 2022-12-07 11:45:52 +01:00
agere
alacritech
allwinner
alteon
altera
amazon net: ena: take into account xdp_features setting tx/rx queues 2023-03-10 21:33:48 -08:00
amd amd-xgbe: fix mismatched prototype 2023-02-06 22:33:18 -08:00
apm
apple net: apple: bmac: don't call dev_kfree_skb() under spin_lock_irqsave() 2022-12-12 09:53:10 +00:00
aquantia net: atlantic: Fix crash when XDP is enabled but no program is loaded 2023-03-16 17:31:47 -07:00
arc
asix
atheros net: alx: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() 2022-12-19 09:23:02 +00:00
broadcom bnxt_en: reset PHC frequency in free-running mode 2023-03-13 15:57:31 -07:00
brocade
cadence net: Use of_property_read_bool() for boolean properties 2023-03-16 17:41:28 +00:00
calxeda
cavium net: thunderx: take into account xdp_features setting tx/rx queues 2023-03-10 21:33:47 -08:00
chelsio Networking changes for 6.3. 2023-02-21 18:24:12 -08:00
cirrus
cisco
cortina
davicom net: Use of_property_read_bool() for boolean properties 2023-03-16 17:41:28 +00:00
dec
dlink
emulex
engleder bpf-next-for-netdev 2023-02-10 17:51:27 -08:00
ezchip
faraday net: ftmac100: handle netdev flags IFF_PROMISC and IFF_ALLMULTI 2023-01-18 13:03:40 +00:00
freescale net: enetc: fix aggregate RMON counters not showing the ranges 2023-03-22 20:39:10 -07:00
fujitsu
fungible drivers: net: turn on XDP features 2023-02-02 20:48:23 -08:00
google gve: Cache link_speed value from device 2023-03-22 22:03:21 -07:00
hisilicon net/sched: move struct tc_mqprio_qopt_offload from pkt_cls.h to pkt_sched.h 2023-02-06 10:06:43 +00:00
huawei
i825xx i825xx: sni_82596: use eth_hw_addr_set() 2023-03-16 17:35:21 -07:00
ibm net: Use of_property_read_bool() for boolean properties 2023-03-16 17:41:28 +00:00
intel ice: add profile conflict check for AVF FDIR 2023-03-28 09:48:41 -07:00
litex
marvell net: mvpp2: parser fix PPPoE 2023-03-28 11:34:01 +02:00
mediatek net: ethernet: mtk_eth_soc: only write values if needed 2023-03-15 08:58:13 +00:00
mellanox bpf-for-netdev 2023-03-23 16:03:33 -07:00
micrel
microchip net: microchip: sparx5: fix deletion of existing DSCP mappings 2023-03-08 13:07:59 +00:00
microsoft bpf-next-for-netdev 2023-02-10 17:51:27 -08:00
moxa
mscc net: mscc: ocelot: add TX_MM_HOLD to ocelot_mm_stats_layout 2023-03-21 21:28:07 -07:00
myricom myri10ge: Fix an error handling path in myri10ge_probe() 2022-12-19 12:30:32 +00:00
natsemi net/sonic: use dma_mapping_error() for error check 2023-03-21 21:29:34 -07:00
neterion ethernet: s2io: don't call dev_kfree_skb() under spin_lock_irqsave() 2022-12-12 09:38:24 +00:00
netronome nfp: fix esp-tx-csum-offload doesn't take effect 2023-03-03 08:28:44 +00:00
ni net: nixge: Separate C22 and C45 transactions 2023-01-17 19:34:08 -08:00
nvidia
nxp
oki-semi
packetengines
pasemi
pensando ionic: add tx/rx-push support with device Component Memory Buffers 2023-02-13 11:05:12 +00:00
qlogic qed/qed_sriov: guard against NULL derefs from qed_iov_get_vf_info 2023-03-19 08:40:48 +00:00
qualcomm net: qcom/emac: Fix use after free bug in emac_remove due to race condition 2023-03-20 09:11:18 +00:00
rdc r6040: Fix kmemleak in probe and remove 2022-12-15 12:48:34 +01:00
realtek r8169: fix RTL8168H and RTL8107E rx crc error 2023-03-25 11:22:04 +00:00
renesas net: renesas: rswitch: Fix GWTSDIE register handling 2023-03-17 07:50:50 +00:00
rocker
samsung net: sxgbe: Separate C22 and C45 transactions 2023-01-17 19:34:08 -08:00
seeq
sfc sfc: ef10: don't overwrite offload features at NIC reset 2023-03-24 14:48:17 -07:00
sgi
silan
sis
smsc smsc911x: avoid PHY being resumed when interface is not up 2023-03-28 13:39:47 +02:00
socionext drivers: net: turn on XDP features 2023-02-02 20:48:23 -08:00
stmicro net: stmmac: don't reject VLANs when IFF_PROMISC is set 2023-03-27 10:33:06 +01:00
sun ethernet: sun: add check for the mdesc_grab() 2023-03-17 07:47:39 +00:00
sunplus net: Remove C45 check in C22 only MDIO bus drivers 2023-01-20 18:12:45 -08:00
synopsys
tehuti
ti net: ethernet: ti: am65-cpts: reset pps genf adj settings on enable 2023-03-17 22:36:10 -07:00
toshiba net/ps3_gelic_net: Use dma_mapping_error 2023-03-20 10:20:40 +00:00
tundra
vertexcom
via net: Use of_property_read_bool() for boolean properties 2023-03-16 17:41:28 +00:00
wangxun net: wangxun: Fix vector length of interrupt cause 2023-03-24 10:37:31 -07:00
wiznet
xilinx net: Use of_property_read_bool() for boolean properties 2023-03-16 17:41:28 +00:00
xircom xirc2ps_cs: Fix use after free bug in xirc2ps_detach 2023-03-19 10:42:02 +00:00
xscale
dnet.c net: ethernet: dnet: don't call dev_kfree_skb() under spin_lock_irqsave() 2022-12-12 09:56:17 +00:00
dnet.h
ec_bhf.c
ethoc.c
fealnx.c eth: fealnx: bring back this old driver 2023-03-08 23:22:04 -08:00
jme.c
jme.h
Kconfig eth: fealnx: bring back this old driver 2023-03-08 23:22:04 -08:00
korina.c
lantiq_etop.c
lantiq_xrx200.c
Makefile eth: fealnx: bring back this old driver 2023-03-08 23:22:04 -08:00