net/gve: fix RSS hash endianness in DQO format
PATCH 1/1 net/gve: fix RSS hash endianness in DQO format
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
--- drivers/net/gve/gve_rx_dqo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/gve/gve_rx_dqo.c +1 -1
@@ -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;
Signature · 1 line
2.44.2
Thank you for your contribution, Shreesh! Let's get this applied as a stable fix so that it can be applied to 23.11 as well.
https://doc.dpdk.org/guides/contributing/patches.html, section "Patch for Stable Releases" should have more detail for how this can be done.
Quoted 1 line
Bugzilla ID: 1441
Please add a "fixes" tag as well. For reference, this is the commit which is being fixed: net/gve: support basic Rx data path for DQO.
Thanks!
Thank you Joshua for your review and suggestions. Appreciate the help with dpdk process.
I've sent a new patch with "Fixes" tag to [email protected]. I'm not sure if same needs to be sent here to [email protected] as well. Please let me know if I've missed anything.
Thanks,
Shreesh
Quoted 9 lines · Shreesh Adiga
Thank you Joshua for your review and suggestions. Appreciate the help with dpdk process.
I've sent a new patch with "Fixes" tag to [email protected] <mailto:[email protected]>.
I'm not sure if same needs to be sent here to [email protected] <mailto:[email protected]> as well.
Please let me know if I've missed anything.
I am copy/pasting from the stable mail list patch:
Bugzilla ID: 1441
You should send a fix to dev & stable mail list, with commit log has 'Fixes' & 'stable' tag.
Patch is first merged to main tree, tested and released. Later it is backported to LTS release by LTS tree maintainers, this is when 'Fixes' & 'stable' tags in commit log is used.
If a fix can't be backported to an LTS automatically, that is when a fix need to be backported manually by its author to a specific LTS release and sent only to stable mail list. It is not the case for this patch.
*Only* fixes merged and tested in the regular release are backported (automatically or manually) to LTS trees. A fix can't exist only in LTS release.
Briefly, expectation is send this fix both dev and stable mail list, with commit log has 'Fixes' and 'stable' (Cc: [email protected]) tag. No need to send a new version of this patch, I will use above data to proceed with the patch.
Quoted 8 lines · Shreesh Adiga
The hash field in struct
gve_rx_compl_desc_dqodefined ingve_desc_dqo.hhas the type__le32. Therefore the hash must be read in little endian rather than big endian.Bugzilla ID: 1441
Signed-off-by Shreesh Adiga <[email protected]>
As patch is trivial and Joshua not objected other than fixes tag, I am adding explicit ack:
Bugzilla ID: 1441
Applied to dpdk-next-net/main, thanks.