From: Shreesh Adiga <16567adigashreesh@gmail.com>
To: Jeroen de Borst <jeroendb@google.com>,
Rushil Gupta <rushilg@google.com>,
Joshua Washington <joshwash@google.com>
Cc: dev@dpdk.org
Subject: [PATCH] net/gve: fix RSS hash endianness in DQO format
Date: Wed, 3 Jul 2024 19:01:53 +0530 [thread overview]
Message-ID: <20240703133153.157661-1-16567adigashreesh@gmail.com> (raw)
The hash field in struct gve_rx_compl_desc_dqo defined in
gve_desc_dqo.h has the type __le32. Therefore the hash must be
read in little endian rather than big endian.
Bugzilla ID: 1441
Signed-off-by: Shreesh Adiga <16567adigashreesh@gmail.com>
---
drivers/net/gve/gve_rx_dqo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/gve/gve_rx_dqo.c b/drivers/net/gve/gve_rx_dqo.c
index f08b58c78d..5efcce3312 100644
--- a/drivers/net/gve/gve_rx_dqo.c
+++ b/drivers/net/gve/gve_rx_dqo.c
@@ -161,7 +161,7 @@ gve_rx_burst_dqo(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t nb_pkts)
rxm->ol_flags = 0;
rxm->ol_flags |= RTE_MBUF_F_RX_RSS_HASH |
gve_parse_csum_ol_flags(rx_desc, rxq->hw);
- rxm->hash.rss = rte_be_to_cpu_32(rx_desc->hash);
+ rxm->hash.rss = rte_le_to_cpu_32(rx_desc->hash);
rx_pkts[nb_rx++] = rxm;
bytes += pkt_len;
--
2.44.2
next reply other threads:[~2024-07-03 13:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-03 13:31 Shreesh Adiga [this message]
2024-07-07 0:33 ` Joshua Washington
2024-07-07 2:53 ` Shreesh Adiga
2024-07-07 13:42 ` Ferruh Yigit
2024-07-07 22:42 ` Ferruh Yigit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240703133153.157661-1-16567adigashreesh@gmail.com \
--to=16567adigashreesh@gmail.com \
--cc=dev@dpdk.org \
--cc=jeroendb@google.com \
--cc=joshwash@google.com \
--cc=rushilg@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).