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 56339A0032; Thu, 1 Sep 2022 10:09:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1ADC242829; Thu, 1 Sep 2022 10:08:45 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2063.outbound.protection.outlook.com [40.107.93.63]) by mails.dpdk.org (Postfix) with ESMTP id 7CA9940395 for ; Thu, 1 Sep 2022 07:34:23 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BCFS7YFF3Cfzk78nPZO2/ucx0sELLxVHDY99ljdti4GiHBwaioptm5URmsz5A5UWhT03Mtexu+GScfkCVJGJYiB2UzXwg/2DzVVMV2jNnuWl5d2escdPOkYcW/HLon6p7IQNKDbqBPjESn+1wVARMDfQQ/WOTGgF8wUxozz/KPciH3f0VrMPl5fZGzj6y1dq49L6XWxAeDSM21wDvwudG4+paym44ML09NGOGTO5MnxMEKOkLxR5SBhDL6wQLl2AWP87ndiHzR/mlZEjZ+yB0nHNQfagnuXT87ukwRSIITFDGeKiYxtTBeWknVntAktXVr/FEGuc06YUwQj2GzZopA== 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=Tqx1XZcfGvjFk9jM0m69waUqzRLWQTfZ2Y4Wur+9NKU=; b=Z1OQOF8AMXUO9M8CFRZhJX9A1oLFa4ajc6BkzViqjePMpvmd6iJisOlB8CVWvPpAT7fsRXMz1NytLS5Rn3+0znLTYGhxeBS4Ig88HiKOnvGAoOLWyrbSyfYy6xUsKo943hlbo2ZqoUIbgq9L3vCS/lZRR4xr0NQ7rKl1BkOnRYB5ox2JglPlK4RuKfTqgAJBhS5qtJnRI4uVkWvSx4LZKlE/VUTKHOv4Y9J0eb8MN/Ght1/5JXYt1fHaHxlrYc/zHitE45DgnT8ZtyDo+c7C64VNcricfWxuKRWX5XZNTr8JpZ2UudngRQPgn7394f/jd5vvESf6wlcF8lJ8AWPvHw== 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=Tqx1XZcfGvjFk9jM0m69waUqzRLWQTfZ2Y4Wur+9NKU=; b=2DkjFGH1uxKNzwLDZtNiK+0xl4L6dCsMuHThcRYS8OXooYc2fD/fcoeY5tT0RDrMPlIvQ/1eluOExKxMvEJKiHhq1eZrDezn6Tx/cCLBgwI36vKVNdQL7PCr0ej/Gej+OPahaIeUzf0jUXvJSD/AqFlZw7Yd42X9yeJwqleL0UU= Received: from DS7PR07CA0010.namprd07.prod.outlook.com (2603:10b6:5:3af::29) by SA1PR12MB7101.namprd12.prod.outlook.com (2603:10b6:806:29d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.10; Thu, 1 Sep 2022 05:34:21 +0000 Received: from DM6NAM11FT111.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3af:cafe::ea) by DS7PR07CA0010.outlook.office365.com (2603:10b6:5:3af::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.10 via Frontend Transport; Thu, 1 Sep 2022 05:34:21 +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 DM6NAM11FT111.mail.protection.outlook.com (10.13.173.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5588.10 via Frontend Transport; Thu, 1 Sep 2022 05:34:21 +0000 Received: from cae-Selwin.amd.com (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; Thu, 1 Sep 2022 00:34:18 -0500 From: Bhagyada Modali To: , CC: , Bhagyada Modali Subject: [PATCH 3/4] net/axgbe: fix scattered Rx function Date: Thu, 1 Sep 2022 01:33:10 -0400 Message-ID: <20220901053311.92964-3-bhagyada.modali@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220901053311.92964-1-bhagyada.modali@amd.com> References: <20220901053311.92964-1-bhagyada.modali@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 801c10cc-ccd1-40bb-9646-08da8bdb9f48 X-MS-TrafficTypeDiagnostic: SA1PR12MB7101:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7e2NyqvbLtLCj4ZDkoP/+ekFhgtzSfLcdFJUMa6BjXEfFPMR/NlA7RbQTL1S2s7IZGlkeyaE/3WZZgAZIyjM8nPdt/gOhl6CS7wD/62wlRPfFZW3M0njN4zgOTHB26FNi///Oye6tPz1oZrp2IiT++WPrChYbNRWak5ngq3y85y/kMJBiY9dMWev2WLbTR+rHRcC4ScMlzBTUgtz5LvKJpto3FwX1SR2p25Q+/N56JJ8PCXHRlCEszhANZWxweJvVdviJBH/hA/DMIblr4z6hBlhze6hi0G8MLEHSLLBAkXEizQTRzryzxibGsLMgJJq0IiItGDq8JLUinXh0MfV3cQdP8GvvhyBsggixYcKhSjzMJn9gQQf7mYrbJWN0mTnaIrit0gIQplEE2L3yibCKM6VsK1dpZzRheaVrFSLreyQfoMvFkkU6MV0T+rG+5ghdc0y82BEZsXplSkt74ogrSZBq207q8zfNSNQ7cXHd/GYJUFnv6HXncVr7gNwq8IKZVXrLw3gRq0hj0udWSbzA8G4iNj4zSGh1rAOl4yBL8eCD8FehWqfogkkocGg7F871zMewsOvxOmzoHwvSE4fgEd0QbDaRUPuodtpg89yUvQ0fP3sOc5MUHp8iey7h99Pn6JSX8SRIAVz81oRD7FlLSdhoiHgFEml0Nuc7LXDfwkcG3xzfZPWYQ7s3TSjCBEY3vqsfdQd6ecCxZwxFNo+n6bGQfce8poXYH5WnWq7KZzBXwNUiFtVVRezeCOwNlKVK5RXvofC/jEwkV203CTqx2y3ExxM9krSnovOjEFG4Is8sq61CdZfnXAQUWUa4qhj 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:(13230016)(4636009)(396003)(39860400002)(376002)(346002)(136003)(36840700001)(40470700004)(46966006)(36860700001)(356005)(86362001)(82740400003)(81166007)(6636002)(40460700003)(54906003)(316002)(110136005)(7696005)(2906002)(44832011)(70586007)(8676002)(5660300002)(8936002)(70206006)(336012)(16526019)(1076003)(4326008)(2616005)(186003)(41300700001)(83380400001)(47076005)(82310400005)(40480700001)(426003)(26005)(4744005)(6666004)(36756003)(478600001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2022 05:34:21.1842 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 801c10cc-ccd1-40bb-9646-08da8bdb9f48 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: DM6NAM11FT111.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7101 X-Mailman-Approved-At: Thu, 01 Sep 2022 10:08:40 +0200 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 Updating mbuf data_len, Pkt_len for each segment before chaining them Fixes: 965b3127d425 ("net/axgbe: support scattered Rx") Signed-off-by: Bhagyada Modali --- drivers/net/axgbe/axgbe_rxtx.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/axgbe/axgbe_rxtx.c b/drivers/net/axgbe/axgbe_rxtx.c index 3594421e08..d3e9368b44 100644 --- a/drivers/net/axgbe/axgbe_rxtx.c +++ b/drivers/net/axgbe/axgbe_rxtx.c @@ -413,6 +413,10 @@ uint16_t eth_axgbe_recv_scattered_pkts(void *rx_queue, } } + /* Mbuf populate */ + mbuf->data_off = RTE_PKTMBUF_HEADROOM; + mbuf->data_len = data_len; + mbuf->pkt_len = data_len; if (first_seg != NULL) { if (rte_pktmbuf_chain(first_seg, mbuf) != 0) @@ -444,9 +448,6 @@ uint16_t eth_axgbe_recv_scattered_pkts(void *rx_queue, mbuf->vlan_tci = 0; } } - /* Mbuf populate */ - mbuf->data_off = RTE_PKTMBUF_HEADROOM; - mbuf->data_len = data_len; err_set: rxq->cur++; -- 2.25.1