net/octeontx2: support flow action port id
PATCH v2 1/1 net/octeontx2: support flow action port id
From: Smadar Fuks <[email protected]>
Action port_id was not supported until now.
In this patch the action port_id supports passing from input port PF to output port which is one of input port respective VF
Signed-off-by Smadar Fuks <[email protected]>
---
v2 - add new octeon tx2 feature to release notes
---
--- doc/guides/nics/octeontx2.rst | 6 +++ doc/guides/rel_notes/release_21_05.rst | 4 ++ drivers/net/octeontx2/otx2_ethdev.c | 6 +-- drivers/net/octeontx2/otx2_ethdev.h | 5 +++ drivers/net/octeontx2/otx2_ethdev_devargs.c | 2 +- drivers/net/octeontx2/otx2_flow_parse.c | 47 ++++++++++++++++++++- 6 files changed, 65 insertions(+), 5 deletions(-)
doc/guides/nics/octeontx2.rst +6 -0
@@ -401,6 +401,12 @@ Actions: +----+-----------------------------------------+ | 11 | RTE_FLOW_ACTION_TYPE_OF_POP_VLAN | +----+-----------------------------------------+ + | 12 | RTE_FLOW_ACTION_TYPE_PORT_ID | + +----+-----------------------------------------+ + +.. note:: + + ``RTE_FLOW_ACTION_TYPE_PORT_ID`` is only supported between PF and its VFs. .. _table_octeontx2_supported_egress_action_types:
doc/guides/rel_notes/release_21_05.rst +4 -0
@@ -119,6 +119,10 @@ New Features * Added command to display Rx queue used descriptor count. ``show port (port_id) rxq (queue_id) desc used count`` +* **Updated OCTEON TX2 ethdev driver.** + + * Added support for flow action port id. + Removed Items -------------
drivers/net/octeontx2/otx2_ethdev.c +3 -3
@@ -2802,6 +2802,6 @@ static struct rte_pci_driver pci_nix = { .remove = nix_remove, }; -RTE_PMD_REGISTER_PCI (net_octeontx2, pci_nix); -RTE_PMD_REGISTER_PCI_TABLE (net_octeontx2, pci_nix_map); -RTE_PMD_REGISTER_KMOD_DEP (net_octeontx2,"vfio-pci" ); +RTE_PMD_REGISTER_PCI (OCTEONTX2_PMD , pci_nix); +RTE_PMD_REGISTER_PCI_TABLE (OCTEONTX2_PMD , pci_nix_map); +RTE_PMD_REGISTER_KMOD_DEP (OCTEONTX2_PMD ,"vfio-pci" );
drivers/net/octeontx2/otx2_ethdev.h +5 -0
@@ -164,6 +164,11 @@/* Additional timesync values. */ #define OTX2_CYCLECOUNTER_MASK 0xffffffffffffffffULL +#define OCTEONTX2_PMD net_octeontx2 + +#define otx2_ethdev_is_same_driver (dev) \ + (strcmp((dev)->device->driver->name, RTE_STR(OCTEONTX2_PMD)) == 0) +enum nix_q_size_e { nix_q_size_16,/* 16 entries */ nix_q_size_64,/* 64 entries */
drivers/net/octeontx2/otx2_ethdev_devargs.c +1 -1
@@ -201,7 +201,7 @@ otx2_ethdev_parse_devargs(struct rte_devargs *devargs, struct otx2_eth_dev *dev)return -EINVAL ; } -RTE_PMD_REGISTER_PARAM_STRING (net_octeontx2, +RTE_PMD_REGISTER_PARAM_STRING (OCTEONTX2_PMD ,OTX2_RSS_RETA_SIZE "=<64|128|256>" OTX2_IPSEC_IN_MAX_SPI "=<1-65535>" OTX2_SCL_ENABLE "=1"
drivers/net/octeontx2/otx2_flow_parse.c +46 -1
66 lines not on this page · raw message
Signature · 1 line
2.27.0
Quoted 7 lines · On 4/8/2021 11:21 AM, [email protected] wrote:
From: Smadar Fuks <[email protected]>
Action
port_idwas not supported until now.
In this patch the actionport_idsupports passing from input port PF to output port which is one of input port respective VFSigned-off-by Smadar Fuks <[email protected]>
Carrying ack from previous version:
Acked-by Jerin Jacob <[email protected]>
Applied to dpdk-next-net/main, thanks.