numam-dpdk/lib/librte_ethdev
Viacheslav Ovsiienko 9bf26e1318 ethdev: move egress metadata to dynamic field
The dynamic mbuf fields were introduced by [1]. The egress metadata is
good candidate to be moved from statically allocated field tx_metadata to
dynamic one. Because mbufs are used in half-duplex fashion only, it is
safe to share this dynamic field with ingress metadata.

The shared dynamic field contains either egress (if application going to
transmit mbuf with tx_burst) or ingress (if mbuf is received with rx_burst)
metadata and can be accessed by RTE_FLOW_DYNF_METADATA() macro or with
rte_flow_dynf_metadata_set() and rte_flow_dynf_metadata_get() helper
routines. PKT_TX_DYNF_METADATA/PKT_RX_DYNF_METADATA flag will be set
along with the data.

The mbuf dynamic field must be registered by calling
rte_flow_dynf_metadata_register() prior accessing the data.

The availability of dynamic mbuf metadata field can be checked with
rte_flow_dynf_metadata_avail() routine.

DEV_TX_OFFLOAD_MATCH_METADATA offload and configuration flag is removed.
The metadata support in PMDs is engaged on dynamic field registration.

Metadata feature is getting complex. We might have some set of actions
and items that might be supported by PMDs in multiple combinations,
the supported values and masks are the subjects to query by perfroming
trials (with rte_flow_validate).

[1] http://patches.dpdk.org/patch/62040/

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Ori Kam <orika@mellanox.com>
2019-11-08 23:15:05 +01:00
..
ethdev_private.c ethdev: move representor parsing functions 2018-10-26 22:14:06 +02:00
ethdev_private.h rename private header files 2019-10-27 22:03:06 +01:00
ethdev_profile.c ethdev: change vtune profiling approach 2018-08-28 15:27:39 +02:00
ethdev_profile.h ethdev: change vtune profiling approach 2018-08-28 15:27:39 +02:00
Makefile ethdev: bump library version 2019-10-27 10:41:50 +01:00
meson.build ethdev: bump library version 2019-10-27 10:41:50 +01:00
rte_class_eth.c ethdev: use new ethernet parsing function 2019-07-08 21:26:52 +02:00
rte_dev_info.h ethdev: add definitions for EEPROM standards 2019-10-23 16:43:08 +02:00
rte_eth_ctrl.h ethdev: fix include of ethernet header file 2019-10-25 19:00:22 +02:00
rte_ethdev_core.h ethdev: add hairpin queue 2019-11-08 23:15:04 +01:00
rte_ethdev_driver.h ethdev: add hairpin queue 2019-11-08 23:15:04 +01:00
rte_ethdev_pci.h ethdev: avoid error on PCI unplug of closed port 2019-07-05 01:52:01 +02:00
rte_ethdev_vdev.h ethdev: rename folder to library name 2018-04-27 18:01:00 +01:00
rte_ethdev_version.map ethdev: extend flow metadata 2019-11-08 23:15:04 +01:00
rte_ethdev.c ethdev: move egress metadata to dynamic field 2019-11-08 23:15:05 +01:00
rte_ethdev.h ethdev: move egress metadata to dynamic field 2019-11-08 23:15:05 +01:00
rte_flow_driver.h enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
rte_flow.c ethdev: extend flow metadata 2019-11-08 23:15:04 +01:00
rte_flow.h ethdev: move egress metadata to dynamic field 2019-11-08 23:15:05 +01:00
rte_mtr_driver.h meter: replace color definitions 2019-04-11 14:27:32 +02:00
rte_mtr.c remove experimental tags from all symbol definitions 2019-06-29 19:04:43 +02:00
rte_mtr.h ethdev: replace license text with SPDX tag 2019-07-29 15:07:48 +02:00
rte_tm_driver.h ethdev: rename folder to library name 2018-04-27 18:01:00 +01:00
rte_tm.c ethdev: rename folder to library name 2018-04-27 18:01:00 +01:00
rte_tm.h ethdev: replace license text with SPDX tag 2019-07-29 15:07:48 +02:00