numam-dpdk/lib/librte_mbuf
Dekel Peled 839b20be0e ethdev: support metadata as flow rule criteria
As described in [1], a new rte_flow item is added to support metadata
to use as flow rule match pattern.
The metadata is an opaque item, fully controlled by the application.

The use of metadata is relevant for egress rules only.
It can be set in the flow rule using the RTE_FLOW_ITEM_META.

An additional member 'tx_metadata' is added in union with existing member
'hash' of struct 'rte_mbuf', located to avoid conflicts with existing
fields. This additional member is used to carry the metadata item.

Application should set the packet metadata in the mbuf dedicated field,
and set the PKT_TX_METADATA flag in the mbuf->ol_flags.
The NIC will use the packet metadata as match criteria for relevant
flow rules.

This patch introduces metadata item type for rte_flow RTE_FLOW_ITEM_META,
along with corresponding struct rte_flow_item_meta and ol_flag
PKT_TX_METADATA.

[1] "[RFC,v2] ethdev: support metadata as flow rule criteria"

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
2018-10-26 22:14:05 +02:00
..
Makefile eal: remove experimental tag for user mbuf pool ops 2018-08-09 01:03:14 +02:00
meson.build mbuf: fix library version on meson build 2018-10-25 14:29:22 +02:00
rte_mbuf_pool_ops.c mbuf: remove experimental tag from pool ops 2018-07-26 23:37:08 +02:00
rte_mbuf_pool_ops.h mbuf: remove experimental tag from pool ops 2018-07-26 23:37:08 +02:00
rte_mbuf_ptype.c mbuf: add IGMP packet type 2018-10-25 15:51:16 +02:00
rte_mbuf_ptype.h mbuf: add IGMP packet type 2018-10-25 15:51:16 +02:00
rte_mbuf_version.map mbuf: remove experimental tag from pool ops 2018-07-26 23:37:08 +02:00
rte_mbuf.c ethdev: support metadata as flow rule criteria 2018-10-26 22:14:05 +02:00
rte_mbuf.h ethdev: support metadata as flow rule criteria 2018-10-26 22:14:05 +02:00