numam-dpdk/lib/librte_ether
Adrien Mazarguil fc6bbb3f28 ethdev: add port ID item and action to flow API
RTE_FLOW_ACTION_TYPE_PORT_ID brings the ability to inject matching traffic
into a different device, as identified by its DPDK port ID.

This is normally only supported when the target port ID has some kind of
relationship with the port ID the flow rule is created against, such as
being exposed by a common physical device (e.g. a different port of an
Ethernet switch).

The converse pattern item, RTE_FLOW_ITEM_TYPE_PORT_ID, makes the resulting
flow rule match traffic whose origin is the specified port ID. Note that
specifying a port ID that differs from the one the flow rule is created
against is normally meaningless (if even accepted), but can make sense if
combined with the transfer attribute.

These must not be confused with their PHY_PORT counterparts, which refer to
physical ports using device-specific indices, but unlike PORT_ID are not
necessarily tied to DPDK port IDs.

This breaks ABI compatibility for the following public functions:

- rte_flow_copy()
- rte_flow_create()
- rte_flow_query()
- rte_flow_validate()

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Reviewed-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
2018-04-27 18:00:54 +01:00
..
ethdev_profile.c lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
ethdev_profile.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
Makefile ethdev: remove versioning of filter control function 2018-03-30 14:08:43 +02:00
meson.build ethdev: fix library version in meson build 2018-04-14 00:40:21 +02:00
rte_dev_info.h ethdev: add access to EEPROM 2018-04-27 18:00:53 +01:00
rte_eth_ctrl.h ethdev: increase flow type limit from 32 to 64 2018-01-21 15:51:52 +01:00
rte_ethdev_core.h ethdev: add access to EEPROM 2018-04-27 18:00:53 +01:00
rte_ethdev_driver.h ethdev: add link status get/set helper functions 2018-03-30 14:08:43 +02:00
rte_ethdev_pci.h ethdev: fix port accessing after release 2018-03-30 14:08:44 +02:00
rte_ethdev_vdev.h ethdev: separate driver APIs 2018-01-22 01:26:49 +01:00
rte_ethdev_version.map ethdev: remove DUP action from flow API 2018-04-27 18:00:53 +01:00
rte_ethdev.c ethdev: add access to EEPROM 2018-04-27 18:00:53 +01:00
rte_ethdev.h ethdev: add access to EEPROM 2018-04-27 18:00:53 +01:00
rte_flow_driver.h align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
rte_flow.c ethdev: add port ID item and action to flow API 2018-04-27 18:00:54 +01:00
rte_flow.h ethdev: add port ID item and action to flow API 2018-04-27 18:00:54 +01:00
rte_mtr_driver.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte_mtr.c add experimental tag to appropriate functions 2018-01-29 23:35:29 +01:00
rte_mtr.h add experimental tag to appropriate functions 2018-01-29 23:35:29 +01:00
rte_tm_driver.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte_tm.c lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte_tm.h ethdev: increase port id range 2017-10-06 18:23:25 +02:00