numam-dpdk/drivers/net
Suanming Mou 792e749e92 net/mlx5: fix register usage in meter
Flow with meter will split to three subflows, the prefix subflow with
meter action do the color, the meter subflow  filter the packets, the
suffix subflow do all the left actions for packets pass the filter.
Both the color and the subflow match between prefix and suffix use the
register to store the tag.

For some of the NICs with meter color register share capability, it
only uses 8 LSB of the register for color, the left 24 MSB can be used
for flow id match between meter prefix subflow and suffix subflow.

Currently, one entire register is allocated for flow matching which
causes the NICs with limited registers don't have enough register for
other matching.

Add the meter color share capability checking to fix lacking of
registers issue.

Fixes: 9ea9b049a9 ("net/mlx5: split meter flow")
Cc: stable@dpdk.org

Signed-off-by: Suanming Mou <suanmingm@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
2020-02-05 09:51:20 +01:00
..
af_packet build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
af_xdp net/af_xdp: use single producer/consumer ring 2020-01-17 19:46:02 +01:00
ark drivers/net: use structure marker from EAL 2020-01-20 21:17:35 +01:00
atlantic build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
avp build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
axgbe net/axgbe: add a HW quirk for register definitions 2020-01-20 18:02:17 +01:00
bnx2x net/bnx2x: support secondary process 2020-01-17 19:46:26 +01:00
bnxt net/bnxt: remove unnecessary memset 2020-02-05 09:51:19 +01:00
bonding build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
cxgbe net/cxgbe: announce Tx multi-segments offload 2020-01-17 19:46:26 +01:00
dpaa net/dpaa: fix Rx offload flags on jumbo MTU set 2020-01-17 19:59:19 +01:00
dpaa2 drivers: update copyright for NXP files 2019-11-28 16:03:54 +01:00
e1000 net/e1000: cleanup Tx buffers 2020-01-17 19:46:26 +01:00
ena net/ena: support Rx offset 2020-01-17 19:46:01 +01:00
enetc build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
enic net/enic: use common min and max macros 2020-02-05 09:51:19 +01:00
failsafe build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
fm10k net/fm10k: remove local bool type 2020-01-17 19:46:02 +01:00
hinic build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
hns3 net/hns3: remove unnecessary branch 2020-01-17 19:59:19 +01:00
i40e net/i40e/base: skip further adminq init for VF 2020-02-05 09:51:19 +01:00
iavf net/iavf: unify bool type value 2020-01-17 19:59:18 +01:00
ice net/ice: add outer IPv4 matching for GTP-U flow 2020-02-05 09:51:19 +01:00
ionic net/ionic: ignore missing field initializers warning 2020-01-21 14:41:58 +01:00
ipn3ke net/ipn3ke: fix line side statistics register read 2020-01-17 19:46:01 +01:00
ixgbe net/ixgbe: enable NEON in meson 2020-01-17 19:59:18 +01: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 build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
mlx4 net/mlx: fix build with clang 9 2019-12-12 23:23:25 +01:00
mlx5 net/mlx5: fix register usage in meter 2020-02-05 09:51:20 +01:00
mvneta build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
mvpp2 build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
netvsc net/netvsc: eliminate NUMA specific allocation 2020-01-17 19:46:26 +01:00
nfb build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
nfp net/nfp: use macro for PCI log format 2020-01-17 19:59:19 +01:00
null build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
octeontx net/octeontx: add unicast MAC filter 2020-01-17 19:46:26 +01:00
octeontx2 drivers/net: use structure marker from EAL 2020-01-20 21:17:35 +01:00
pcap net/pcap: truncate packet if it is too large 2020-01-17 19:45:23 +01:00
pfe drivers: update copyright for NXP files 2019-11-28 16:03:54 +01:00
qede net/qede: enhance Tx CPU utilization 2020-01-17 19:46:26 +01:00
ring build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
sfc build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
softnic build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
szedata2 build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
tap net/tap: fix memory leak when unregister intr handler 2020-02-05 09:51:19 +01:00
thunderx drivers/net: use structure marker from EAL 2020-01-20 21:17:35 +01:00
vdev_netvsc build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
vhost net/vhost: check creation failure 2020-01-17 19:46:02 +01:00
virtio net/virtio-user: fix packed ring server mode 2020-01-17 19:46:26 +01:00
vmxnet3 net/vmxnet3: remove local bool type 2020-01-17 19:46:02 +01:00
Makefile net/ionic: add skeleton 2020-01-20 18:02:17 +01:00
meson.build drivers: move ifc to vDPA directory 2020-01-14 00:09:33 +01:00