Skip to contentSkip to conversation

net/octeontx2: support flow action port id

PATCH Applied [email protected] 2 participants 2 messages Apr 8, 2021 Network drivers

lore
Share & tools
lore
#0 lore raw

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

---
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
index cca7f7fc7..258c1693f 100644
@@ -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
index 3c76148b1..250fb8ea8 100644
@@ -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
index b4e58853b..0834de0cb 100644
@@ -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
index 7391f09b8..ac50da7b1 100644
@@ -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
index 8d9feb3a8..83f905315 100644
@@ -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
Acked-by Jerin Jacob on v2 1/1 Applied
#1 lore raw
Quoted 7 lines · On 4/8/2021 11:21 AM, [email protected] wrote:

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

Carrying ack from previous version:

Applied to dpdk-next-net/main, thanks.