DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH v1] net/mlx4: store RSS hash result in mbufs
@ 2017-11-12 14:36 Raslan Darawsheh
  2017-11-13  9:26 ` Adrien Mazarguil
  0 siblings, 1 reply; 3+ messages in thread
From: Raslan Darawsheh @ 2017-11-12 14:36 UTC (permalink / raw)
  To: adrien.mazarguil; +Cc: dev, thomas

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>
---
 drivers/net/mlx4/mlx4_rxtx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/mlx4/mlx4_rxtx.c b/drivers/net/mlx4/mlx4_rxtx.c
index 2bfa8b1..5bc9874 100644
--- 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 =
-- 
2.7.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH v1] net/mlx4: store RSS hash result in mbufs
  2017-11-12 14:36 [dpdk-dev] [PATCH v1] net/mlx4: store RSS hash result in mbufs Raslan Darawsheh
@ 2017-11-13  9:26 ` Adrien Mazarguil
  2017-11-27 19:46   ` Shahaf Shuler
  0 siblings, 1 reply; 3+ messages in thread
From: Adrien Mazarguil @ 2017-11-13  9:26 UTC (permalink / raw)
  To: Raslan Darawsheh; +Cc: dev

On Sun, Nov 12, 2017 at 04:36:22PM +0200, Raslan Darawsheh wrote:
> 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>

-- 
Adrien Mazarguil
6WIND

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH v1] net/mlx4: store RSS hash result in mbufs
  2017-11-13  9:26 ` Adrien Mazarguil
@ 2017-11-27 19:46   ` Shahaf Shuler
  0 siblings, 0 replies; 3+ messages in thread
From: Shahaf Shuler @ 2017-11-27 19:46 UTC (permalink / raw)
  To: Adrien Mazarguil, Raslan Darawsheh; +Cc: dev

Monday, November 13, 2017 11:26 AM, Adrien Mazarguil:
> 
> On Sun, Nov 12, 2017 at 04:36:22PM +0200, Raslan Darawsheh wrote:
> > 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>

Applied to next-net-mlx, thanks.

> 
> --
> Adrien Mazarguil
> 6WIND

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-11-27 19:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-12 14:36 [dpdk-dev] [PATCH v1] net/mlx4: store RSS hash result in mbufs Raslan Darawsheh
2017-11-13  9:26 ` Adrien Mazarguil
2017-11-27 19:46   ` Shahaf Shuler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).