diff mbox series

[v1,28/38] net/mvpp2: propagate port-id in udata64

Message ID 20201202101212.4717-29-lironh@marvell.com (mailing list archive)
State Superseded, archived
Delegated to: Jerin Jacob
Headers show
Series net/mvpp2: misc updates | expand

Checks

Context Check Description
ci/checkpatch warning coding style issues

Commit Message

Liron Himi Dec. 2, 2020, 10:12 a.m. UTC
From: Liron Himi <lironh@marvell.com>

mbuf->port can be override and used for eventdev
so saving the port-id information in another field
tht can be query by application

Signed-off-by: Liron Himi <lironh@marvell.com>
Reviewed-by: Liron Himi <lironh@marvell.com>
---
 drivers/net/mvpp2/mrvl_ethdev.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Michael Shamis Dec. 23, 2020, 9:32 a.m. UTC | #1
Reviewed-by: Michael Shamis <michaelsh@marvell.com>

-----Original Message-----
From: dev <dev-bounces@dpdk.org> On Behalf Of lironh@marvell.com
Sent: Wednesday, December 2, 2020 12:12 PM
To: Jerin Jacob Kollanukkaran <jerinj@marvell.com>
Cc: dev@dpdk.org; Liron Himi <lironh@marvell.com>
Subject: [dpdk-dev] [PATCH v1 28/38] net/mvpp2: propagate port-id in udata64

From: Liron Himi <lironh@marvell.com>

mbuf->port can be override and used for eventdev
so saving the port-id information in another field tht can be query by application

Signed-off-by: Liron Himi <lironh@marvell.com>
Reviewed-by: Liron Himi <lironh@marvell.com>
---
 drivers/net/mvpp2/mrvl_ethdev.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/mvpp2/mrvl_ethdev.c b/drivers/net/mvpp2/mrvl_ethdev.c index 1f9489d77..66c3c8e57 100644
--- a/drivers/net/mvpp2/mrvl_ethdev.c
+++ b/drivers/net/mvpp2/mrvl_ethdev.c
@@ -2693,6 +2693,7 @@ mrvl_rx_pkt_burst(void *rxq, struct rte_mbuf **rx_pkts, uint16_t nb_pkts)
 		mbuf->l2_len = l3_offset;
 		mbuf->l3_len = l4_offset - l3_offset;
 
+		mbuf->udata64 = q->port_id;
 		if (likely(q->cksum_enabled))
 			mbuf->ol_flags = mrvl_desc_to_ol_flags(&descs[i]);
 
--
2.28.0
diff mbox series

Patch

diff --git a/drivers/net/mvpp2/mrvl_ethdev.c b/drivers/net/mvpp2/mrvl_ethdev.c
index 1f9489d77..66c3c8e57 100644
--- a/drivers/net/mvpp2/mrvl_ethdev.c
+++ b/drivers/net/mvpp2/mrvl_ethdev.c
@@ -2693,6 +2693,7 @@  mrvl_rx_pkt_burst(void *rxq, struct rte_mbuf **rx_pkts, uint16_t nb_pkts)
 		mbuf->l2_len = l3_offset;
 		mbuf->l3_len = l4_offset - l3_offset;
 
+		mbuf->udata64 = q->port_id;
 		if (likely(q->cksum_enabled))
 			mbuf->ol_flags = mrvl_desc_to_ol_flags(&descs[i]);