From: Alejandro Lucero Date: Thu, 22 Feb 2018 11:13:48 +0000 (+0000) Subject: net/nfp: fix assigning port id in mbuf X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ca7d716b3ad74529fa331f2cfb45716241124b27;p=dpdk.git net/nfp: fix assigning port id in mbuf Although this can be done by the app, because other PMDs are doing it, apps expect this behaviour from the PMD. Fixes: b812daadad0d ("nfp: add Rx and Tx") Cc: stable@dpdk.org Signed-off-by: Alejandro Lucero --- diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c index e5bfde627b..5180a3189c 100644 --- a/drivers/net/nfp/nfp_net.c +++ b/drivers/net/nfp/nfp_net.c @@ -2089,6 +2089,8 @@ nfp_net_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t nb_pkts) mb->nb_segs = 1; mb->next = NULL; + mb->port = rxq->port_id; + /* Checking the RSS flag */ nfp_net_set_hash(rxq, rxds, mb);