[dpdk-dev] [PATCH] net/nfp: add port id to mbuf

Alejandro Lucero alejandro.lucero at netronome.com
Thu Feb 22 12:13:48 CET 2018


Although this can be done by the app, because other PMDs are doing it,
apps expect this behaviour from the PMD.

Signed-off-by: Alejandro Lucero <alejandro.lucero at netronome.com>
---
 drivers/net/nfp/nfp_net.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c
index e5bfde6..5180a31 100644
--- a/drivers/net/nfp/nfp_net.c
+++ b/drivers/net/nfp/nfp_net.c
@@ -2089,6 +2089,8 @@ enum nfp_qcp_ptr {
 		mb->nb_segs = 1;
 		mb->next = NULL;
 
+		mb->port = rxq->port_id;
+
 		/* Checking the RSS flag */
 		nfp_net_set_hash(rxq, rxds, mb);
 
-- 
1.9.1



More information about the dev mailing list