From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D885A45561; Wed, 3 Jul 2024 15:32:07 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BF59B410FB; Wed, 3 Jul 2024 15:32:07 +0200 (CEST) Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by mails.dpdk.org (Postfix) with ESMTP id B19B24029E for ; Wed, 3 Jul 2024 15:32:06 +0200 (CEST) Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-7201cb6cae1so3053220a12.2 for ; Wed, 03 Jul 2024 06:32:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720013526; x=1720618326; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=pe7DQjZlXpGD6QtzqC3SWDHn9No4Mlr7SCdktwk0iy4=; b=eZBzX/PBATec/91bt1GZ2wyRXTE/Wo6I/BflJoKDgmC5A3YEBMFIpDZCxQGadFnmUJ cAMazNBp0p2UpdPO8LQunZPrPkZkkmn5gHoBUgW7uP8tmvUB58Nbd9r4eN0BP91CElR8 MQvCGOri41NgD9C77G7l2Jn8jkcjMz52ktvpLog8B8kDT2okF0/19A7IYIT3Z8V4vcOn t64dxbIBPysiLPBC5Q+1YSNvviKDrySxifwc+NKLL6c2ZUEIsvkDrH8wURRO/SPtzhH8 bM0c6tecnbaexQGA3y8VY02HRzPQh+QBOEAITyaQojUIC+asyFZZq/g4NIVLnCoSiM6B 3xvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720013526; x=1720618326; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pe7DQjZlXpGD6QtzqC3SWDHn9No4Mlr7SCdktwk0iy4=; b=J9xALVfiVKehTcYp3q/aoPHQgfwdUlH8rq9nGqdH6m0xgQkf6mEyiIni83X64z97AU UOfB/jlQ6IizZhhkkh87TGDE+TX302ypsByMcX+wzErr7P/ZIgds6Qzvk3LEVxEAZ70P vH6Jogwrn7NJMHgof0DVf6AOykz6p3JfWKIc+MUuPaVU3hLcdVKgeo4VhwwaI7hNC4/p 8I8LxZ/k9CxKyuHMIbqIBmmlyw9m4Zaj3OVmRvqTj2zx2i/5yXk32j730ZRT2oq3vl5r NT/5vWX97gYRMlYVcttt5nedDfc5t4qUNKRyTTNKgIFhmKRKTUVP63o3AMqFanJAzrPi rLYw== X-Gm-Message-State: AOJu0Yz37xUvguPYvcOlpRQJojZjypihtOlhicMXCWCvqskiyZduY7qR a/e8oUzYATyI+B+KDuKF9o3alupUcWYWxDIyOzAGH5UeD9pRspjD X-Google-Smtp-Source: AGHT+IHF2h7XX4jpgUXV4U5E3UHuDL3InLGRbMzN01rCcH7hbdDaZDqgzTLGG8RDnrARHXay2+HFrg== X-Received: by 2002:a05:6a21:6da1:b0:1be:c955:4ed0 with SMTP id adf61e73a8af0-1bef627597fmr12570395637.57.1720013525567; Wed, 03 Jul 2024 06:32:05 -0700 (PDT) Received: from localhost.localdomain ([106.51.181.85]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70804a7e7e0sm10374211b3a.204.2024.07.03.06.32.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 06:32:05 -0700 (PDT) From: Shreesh Adiga <16567adigashreesh@gmail.com> To: Jeroen de Borst , Rushil Gupta , Joshua Washington Cc: dev@dpdk.org Subject: [PATCH] net/gve: fix RSS hash endianness in DQO format Date: Wed, 3 Jul 2024 19:01:53 +0530 Message-ID: <20240703133153.157661-1-16567adigashreesh@gmail.com> X-Mailer: git-send-email 2.44.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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