Go to file
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
.ci ci: reduce examples in static builds 2020-04-17 23:34:08 +02:00
app trace: simplify trace point headers 2020-05-06 13:50:32 +02:00
buildtools build: add internal tag check 2020-04-25 17:01:01 +02:00
config node: add logging and null node 2020-05-05 23:37:43 +02:00
devtools version: reference next ABI 21 for recent additions 2020-05-05 00:25:34 +02:00
doc doc: add i40e limitation for flow director 2020-05-05 15:54:25 +02:00
drivers net/mlx5: save meter index instead of meter id 2020-05-05 15:54:26 +02:00
examples examples/ipsec-gw: fix gcc 10 maybe-uninitialized warning 2020-05-06 11:18:36 +02:00
kernel eal: move OS-specific sub-directories 2020-03-31 13:08:55 +02:00
lib eal/ppc: fix build with gcc 9.3 2020-05-06 18:12:57 +02:00
license eal: move OS-specific sub-directories 2020-03-31 13:08:55 +02:00
mk node: add logging and null node 2020-05-05 23:37:43 +02:00
usertools usertools: check for pci.ids in /usr/share/misc 2020-04-25 21:59:10 +02:00
.editorconfig devtools: add EditorConfig file 2020-02-22 21:05:22 +01:00
.gitattributes
.gitignore doc: add feature matrix table for bbdev 2020-04-19 22:34:26 +02:00
.travis.yml ci: fix telemetry dependency in Travis 2020-04-10 10:03:22 +02:00
ABI_VERSION version: 20.05-rc0 2020-02-27 12:02:19 +01:00
GNUmakefile test: move to app directory 2019-02-26 15:29:27 +01:00
MAINTAINERS doc: add l3fwd-graph application user guide 2020-05-05 23:46:36 +02:00
Makefile remove blank lines at end of file 2019-11-26 00:12:08 +01:00
meson_options.txt trace: introduce new subsystem 2020-04-23 15:39:06 +02:00
meson.build node: add logging and null node 2020-05-05 23:37:43 +02:00
README
VERSION version: 20.05-rc1 2020-04-27 00:04:01 +02:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org