git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b39cc7
)
net/nfp: fix assigning port id in mbuf
author
Alejandro Lucero
<alejandro.lucero@netronome.com>
Thu, 22 Feb 2018 11:13:48 +0000
(11:13 +0000)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Fri, 30 Mar 2018 12:08:43 +0000
(14:08 +0200)
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 <alejandro.lucero@netronome.com>
drivers/net/nfp/nfp_net.c
patch
|
blob
|
history
diff --git
a/drivers/net/nfp/nfp_net.c
b/drivers/net/nfp/nfp_net.c
index
e5bfde6
..
5180a31
100644
(file)
--- 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);