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:
27a6b2d
)
net/mlx4: store RSS hash result in mbufs
author
Raslan Darawsheh
<rasland@mellanox.com>
Sun, 12 Nov 2017 14:36:22 +0000
(16:36 +0200)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000
(18:47 +0100)
Add RSS hash result from CQE to mbuf,
Also, set PKT_RX_RSS_HASH in the ol_flags.
Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4_rxtx.c
patch
|
blob
|
history
diff --git
a/drivers/net/mlx4/mlx4_rxtx.c
b/drivers/net/mlx4/mlx4_rxtx.c
index
2bfa8b1
..
5bc9874
100644
(file)
--- a/
drivers/net/mlx4/mlx4_rxtx.c
+++ b/
drivers/net/mlx4/mlx4_rxtx.c
@@
-964,7
+964,8
@@
mlx4_rx_burst(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts_n)
/* Update packet information. */
pkt->packet_type =
rxq_cq_to_pkt_type(cqe, rxq->l2tun_offload);
- pkt->ol_flags = 0;
+ pkt->ol_flags = PKT_RX_RSS_HASH;
+ pkt->hash.rss = cqe->immed_rss_invalid;
pkt->pkt_len = len;
if (rxq->csum | rxq->csum_l2tun) {
uint32_t flags =