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 5D4C3A04FD; Fri, 7 Oct 2022 19:44:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 10D26427F2; Fri, 7 Oct 2022 19:44:24 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2074.outbound.protection.outlook.com [40.107.94.74]) by mails.dpdk.org (Postfix) with ESMTP id B0231427F4; Fri, 7 Oct 2022 19:44:22 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IAFzTll8/FrEndhLyrf04Xzafo5JHz1KtPR5Vvx6URSuFwbUlzWi/KtN962gKeIAs3HaEFcpSXd+Krrhe0Egs2x0KakjhxkVkKYU3vuwfdfHcGfueoa8rL76qGj4a39zRxNHkfv7oAiKwFibDhIleeWbhz6cZGKqJ9eFGvEzjkIaso50T3IDDsEV43jPAjR9BJ8TDaNYc9XLnmQXDuE6dlr/6dR9J/9H8SXMmZAk9wvNn0hqzPPFFXZUeq9TPG/w/bW6K9UWzsJDZLpm2QW5cfQr0Bw4jBluGJxFADaJzyrdbu1kaJOjTFtxLKG8Pe6EepNk+MOxID9bm1yDkxccOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wv+SJFHZtoF0cbL6kOsGC6q4yIamc00xvELMlpsSuVw=; b=AkdBbk+rInMl8SLkfNxzJdvdoSq+HsbWaKHtoC1ynwmOmzEPUfEXU/GRjMB4iBd75jqobEvER8Wtdhv9LnVWAje9O2WrADN35JzILHHbKM9DcszYZmafZuF/6bRiq/U5busxtWuSI8z0qEWouSOsAXIUGdaVmfnnSWOwoiTbXuHN8tg4wxxgFSSm9nNUzh1zm30IiPAz66gP5zjID/eTkgMpTGnACne0xbyjtyJT4ecm593SZYD27gZsZQt44RnjcUoAbg0oifQfhL5WKGsg8Q5YymJMmC/15Der3Jw9I1iLQoHD4lixHAZZGXVp3Wgi8VJL+ZNXFZpv3JVmDpNoFA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=dpdk.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wv+SJFHZtoF0cbL6kOsGC6q4yIamc00xvELMlpsSuVw=; b=Wyx23LIrdxcXe2kpnVrdkv3UPYhaYR/7mwlS1b8x5wcEtCMpuaBkPXRBQmhDVcrvgg/+0I+AHXkoRX5kz9sXcyc02Hb28vEoHj0PlDGAVCnpXmEEOqmIuvI1EURkbqguAdXYZQHLy+hzG/MA4HJ5zv/qvnkHFmhvQOIinBfS+oQ= Received: from MW4PR03CA0315.namprd03.prod.outlook.com (2603:10b6:303:dd::20) by CY5PR12MB6299.namprd12.prod.outlook.com (2603:10b6:930:20::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.34; Fri, 7 Oct 2022 17:44:21 +0000 Received: from CO1NAM11FT101.eop-nam11.prod.protection.outlook.com (2603:10b6:303:dd:cafe::c3) by MW4PR03CA0315.outlook.office365.com (2603:10b6:303:dd::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.26 via Frontend Transport; Fri, 7 Oct 2022 17:44:20 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CO1NAM11FT101.mail.protection.outlook.com (10.13.175.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5709.10 via Frontend Transport; Fri, 7 Oct 2022 17:44:20 +0000 Received: from driver-dev1.pensando.io (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Fri, 7 Oct 2022 12:44:19 -0500 From: Andrew Boyer To: CC: Andrew Boyer , , Subject: [PATCH 02/35] net/ionic: fix up endianness for RSS Date: Fri, 7 Oct 2022 10:43:03 -0700 Message-ID: <20221007174336.54354-3-andrew.boyer@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221007174336.54354-1-andrew.boyer@amd.com> References: <20221007174336.54354-1-andrew.boyer@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT101:EE_|CY5PR12MB6299:EE_ X-MS-Office365-Filtering-Correlation-Id: 6f0f7627-fa15-4543-d367-08daa88b90b6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: q3Tz04Cw07JYrTMWNBA32mt6Ni+vnpFcniYGlTa+Z4nS6blnyLJKpHygmUBnI4sjCd3SmtTrLWVUmp7JHRrmTj/n0TvKwOhnLgMohopmjQ9wKKxGAZ8+FXGG7LEzPRBLWYo3E3sOXOtpl5QY7EZUpb3JP8svOTvoi8AMTrHyRCEIjEZPjq7KT0/rzj5LXKpzn/t4e/a4SC6pz+9PHs6CmmvB2ussDlZFDjAoVZM02eB+xel74N/Y07++m8iHBvSXyFb+49qk30SCI2Gw586fJhtRJsZB6JqJaEkjQI8lniPjSkyg75m1PuFG1Dv9hxKUIJqx/e+i3F5YcBouqQJM88bJYXlaQwf/GucNVKwpY9sxeEJ6P3aIkO1GAhRZYg4YNQdYfApQfsYr45L5Fgwa1eciasMpT9c80DptKdlLFP4XYnhjym1CL+0oPuZaD3j/LslUsRMhoO+6Yr0lADpOsycDc9NSPJ+wpSuvNdfOrTdp9QcVWGF+scJAapTXXEeEGQYE6RWkxrs1GuLyPqfH57USc9SDWZ1ITFb+6fY1INMslhk7VmJ4GrvUDYMPvYu9fq9knbbWH/u2eHAtr43gNj1sdIzX2FUm5gbFgZD/YEuB1OptZDHRce+3NPJGg/5palKVXdefO/Esqkt6OPgtu3K+FyOn0Li048uU2PjniK1dnRvgiPDWSLRhukl+9efiNOzcX68rH7j5SNHKkpai2kmVMXfQB2vo+BZPl+DuVrZbTYCtbighm6w4oEefW9YrwgtBD40hG98E3Nfh+BNrDptsQUltzJleZXFM6yzXLQ4= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230022)(4636009)(396003)(136003)(376002)(346002)(39860400002)(451199015)(46966006)(36840700001)(40470700004)(2906002)(316002)(5660300002)(70586007)(36860700001)(478600001)(8676002)(4744005)(70206006)(4326008)(6666004)(41300700001)(86362001)(6916009)(36756003)(336012)(54906003)(82310400005)(8936002)(186003)(44832011)(356005)(83380400001)(426003)(1076003)(47076005)(26005)(82740400003)(2616005)(16526019)(40480700001)(81166007)(40460700003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2022 17:44:20.6449 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6f0f7627-fa15-4543-d367-08daa88b90b6 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT101.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6299 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 This field needs to be LE when talking to the FW. Fixes: 22e7171bc63b ("net/ionic: support RSS") Cc: cardigliano@ntop.org Cc: stable@dpdk.org Signed-off-by: Andrew Boyer --- drivers/net/ionic/ionic_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ionic/ionic_rxtx.c b/drivers/net/ionic/ionic_rxtx.c index af2d89f9fa..665d085823 100644 --- a/drivers/net/ionic/ionic_rxtx.c +++ b/drivers/net/ionic/ionic_rxtx.c @@ -843,7 +843,7 @@ ionic_rx_clean(struct ionic_rx_qcq *rxq, /* RSS */ pkt_flags |= RTE_MBUF_F_RX_RSS_HASH; - rxm->hash.rss = cq_desc->rss_hash; + rxm->hash.rss = rte_le_to_cpu_32(cq_desc->rss_hash); /* Vlan Strip */ if (cq_desc->csum_flags & IONIC_RXQ_COMP_CSUM_F_VLAN) { -- 2.17.1