numam-dpdk/drivers/net
Ophir Munk 0efc99bed3 net/mlx5: fix flow rules with Verbs
The flow_verbs_translate() function accumulates hash fields while
iterating through the flow items (SRC_IPV4, DST_IPV4, SRC_IPV6,
DST_IPV6, SRC_PORT_TCP, DST_PORT_TCP, SRC_PORT_UDP, DST_PORT_UDP).
Before this commit the dev_flow handle structure was reused in each new
flow_verbs_translate() call, however the dev_flow->hash_fields variable
was not reset before each call. As a result hash_fields from previous
calls remained present in the current flow which lead to invalid
combinations (e.g.  simultaneous IPv4 and IPv6 specs). This scenario
happens for example in the next flows sequence, when running in verbs
mode (dv_flow_en=0).

flow create 0 ingress group 0 pattern eth / ipv4 / end <rss actions>
flow create 0 ingress group 0 pattern eth / ipv6 / end <rss actions>

The fix is to reset dev_flow->hash_fields in flow_verbs_prepare().

Fixes: e7bfa3596a ("net/mlx5: separate the flow handle resource")

Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
2020-05-05 15:54:27 +02:00
..
af_packet net/af_packet: remove queue number limitation 2020-03-18 10:21:41 +01:00
af_xdp net/af_xdp: fix maximum MTU 2020-02-14 12:42:12 +01:00
ark replace packed attributes 2020-04-16 18:16:46 +02:00
atlantic replace packed attributes 2020-04-16 18:16:46 +02:00
avp net/avp: fix gcc 10 maybe-uninitialized warning 2020-05-06 11:18:36 +02:00
axgbe build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
bnx2x net/bnx2x: handle guest VLAN for SR-IOV 2020-04-21 13:57:07 +02:00
bnxt net/bnxt: modify mark manager validity checks 2020-05-05 15:54:27 +02:00
bonding replace unused attributes 2020-04-16 18:30:58 +02:00
cxgbe fix various typos found by Lintian 2020-04-25 19:53:47 +02:00
dpaa net/dpaa: use dynamic log type 2020-04-21 13:57:05 +02:00
dpaa2 fix various typos found by Lintian 2020-04-25 19:53:47 +02:00
e1000 build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
ena net/ena: update driver version to v2.1.0 2020-04-21 13:57:07 +02:00
enetc replace hot attributes 2020-04-16 18:30:58 +02:00
enic net/enic: allow multiple mark and flag actions 2020-04-21 13:57:08 +02:00
failsafe build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
fm10k replace cold attributes 2020-04-16 18:30:58 +02:00
hinic fix various typos found by Lintian 2020-04-25 19:53:47 +02:00
hns3 net/hns3: fix return value when clearing statistics 2020-05-05 15:54:26 +02:00
i40e net/i40e: fix flush of flow director filter 2020-05-05 15:54:25 +02:00
iavf net/iavf: fix VF reset for flow director rule 2020-05-05 15:54:25 +02:00
ice net/ice/base: fix DCF switch rule 2020-05-05 15:54:26 +02:00
igc version: reference next ABI 21 for recent additions 2020-05-05 00:25:34 +02:00
ionic version: reference next ABI 21 for recent additions 2020-05-05 00:25:34 +02:00
ipn3ke net/ipn3ke: use control thread to check link status 2020-04-21 13:57:04 +02:00
ixgbe net/ixgbe: fix link status after port reset 2020-04-22 12:31:12 +02:00
kni net/kni: fix crash caused by double stop 2019-11-26 18:22:27 +01:00
liquidio build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
memif net/memif: enable promiscuous mode 2020-04-21 13:57:08 +02:00
mlx4 net/mlx4: fix build with -fno-common 2020-04-21 13:57:07 +02:00
mlx5 net/mlx5: fix flow rules with Verbs 2020-05-05 15:54:27 +02:00
mvneta net/mvneta: do not use PMD log type 2020-04-21 13:57:05 +02:00
mvpp2 build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
netvsc net/netvsc: avoid possible live lock 2020-04-21 13:57:06 +02:00
nfb net/nfb: check array size before access 2020-04-21 13:57:06 +02:00
nfp net/nfp: fix dangling pointer on probe failure 2020-04-21 13:57:06 +02:00
null net/null: add argument for no Rx 2020-04-21 13:57:07 +02:00
octeontx net/octeontx: fix dangling pointer on init failure 2020-05-05 15:54:26 +02:00
octeontx2 net/octeontx2: update red algo for shaper dynamic update 2020-05-05 15:54:26 +02:00
pcap net/pcap: truncate packet if it is too large 2020-01-17 19:45:23 +01:00
pfe fix various typos found by Lintian 2020-04-25 19:53:47 +02:00
qede net/qede: support FW version query 2020-05-05 15:54:26 +02:00
ring build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
sfc net/sfc/base: fix build when EVB is enabled 2020-05-05 15:54:26 +02:00
softnic net/softnic: fix resource leak for pipeline 2020-05-05 15:54:26 +02:00
szedata2 build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
tap net/tap: fix queues fd check before close 2020-04-21 13:57:09 +02:00
thunderx net/thunderx: use dynamic log type 2020-04-21 13:57:05 +02:00
vdev_netvsc build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
vhost net/vhost: fix potential memory leak on close 2020-04-21 13:57:07 +02:00
virtio virtio: use one way barrier for split vring avail index 2020-05-05 15:54:26 +02:00
vmxnet3 net/vmxnet3: support MTU set 2020-04-21 13:57:06 +02:00
Makefile net/igc: add skeleton 2020-04-21 13:57:07 +02:00
meson.build net/igc: add skeleton 2020-04-21 13:57:07 +02:00