numam-dpdk/drivers/net/mlx5
Suanming Mou dd76f43612 net/mlx5: save meter index instead of meter id
Currently, while creating the flow with meter, meter id is saved to the
rte flow. While destroying the flow, the meter object will be found by
the meter id, so the meter object will be released accordingly. But as
the meter id is configured by user, while the meter id is set to 0, it
doesn't make any sense to flow destroy since 0 means flow doesn't have
meter. The meter object with id 0 will be leaked.

As meter object is allocated from indexed memory, and the index starts
from 1, save the internal generated index instead of user defined meter
id will never meet the issue as above.

This patch saves meter index instead of meter id in rte flow.

Signed-off-by: Suanming Mou <suanmingm@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
2020-05-05 15:54:26 +02:00
..
Makefile build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
meson.build build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
mlx5_defs.h net/mlx5: add device parameter for MPRQ stride size 2020-04-21 13:57:08 +02:00
mlx5_ethdev.c net/mlx: replace hardcoded value with macro 2020-02-14 12:42:12 +01:00
mlx5_flow_dv.c net/mlx5: save meter index instead of meter id 2020-05-05 15:54:26 +02:00
mlx5_flow_meter.c net/mlx5: optimize memory for flow meter 2020-04-21 16:18:13 +02:00
mlx5_flow_verbs.c net/mlx5: fix header modify action validation 2020-04-21 22:28:06 +02:00
mlx5_flow.c net/mlx5: fix empty flow error structure 2020-05-05 15:54:26 +02:00
mlx5_flow.h net/mlx5: fix header modify action validation 2020-04-21 22:28:06 +02:00
mlx5_mac.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_mp.c common/mlx5: refactor memory management 2020-04-21 13:57:08 +02:00
mlx5_mr.c common/mlx5: refactor memory management 2020-04-21 13:57:08 +02:00
mlx5_mr.h common/mlx5: refactor memory management 2020-04-21 13:57:08 +02:00
mlx5_rss.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxmode.c net/mlx5: reduce Netlink commands dependencies 2020-02-05 09:51:20 +01:00
mlx5_rxq.c net/mlx5: improve logging of MPRQ selection 2020-04-21 22:28:06 +02:00
mlx5_rxtx_vec_altivec.h eal/ppc: fix bool type after altivec include 2020-05-06 11:45:13 +02:00
mlx5_rxtx_vec_neon.h net/mlx5: set dynamic flow metadata in Rx queues 2020-04-21 22:28:06 +02:00
mlx5_rxtx_vec_sse.h net/mlx5: set dynamic flow metadata in Rx queues 2020-04-21 22:28:06 +02:00
mlx5_rxtx_vec.c replace cold attributes 2020-04-16 18:30:58 +02:00
mlx5_rxtx_vec.h common/mlx5: refactor memory management 2020-04-21 13:57:08 +02:00
mlx5_rxtx.c fix various typos found by Lintian 2020-04-25 19:53:47 +02:00
mlx5_rxtx.h net/mlx5: set dynamic flow metadata in Rx queues 2020-04-21 22:28:06 +02:00
mlx5_socket.c net/mlx5: replace destructor syntax with common macro 2020-04-16 18:07:29 +02:00
mlx5_stats.c net/mlx5: use open/read/close for ib stats query 2020-04-21 13:57:07 +02:00
mlx5_trigger.c net/mlx5: set dynamic flow metadata in Rx queues 2020-04-21 22:28:06 +02:00
mlx5_txq.c common/mlx5: refactor memory management 2020-04-21 13:57:08 +02:00
mlx5_utils.c net/mlx5: add trunk release for indexed pool 2020-04-21 13:57:09 +02:00
mlx5_utils.h eal/ppc: fix bool type after altivec include 2020-05-06 11:45:13 +02:00
mlx5_vlan.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5.c net/mlx5: fix assert in doorbell lookup 2020-05-05 15:54:26 +02:00
mlx5.h net/mlx5: set dynamic flow metadata in Rx queues 2020-04-21 22:28:06 +02:00
rte_pmd_mlx5_version.map net/mlx5: support fine grain dynamic flag 2020-02-05 09:51:20 +01:00
rte_pmd_mlx5.h net/mlx5: support fine grain dynamic flag 2020-02-05 09:51:20 +01:00