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 09C4E41E29; Fri, 10 Mar 2023 06:14:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E3F6440685; Fri, 10 Mar 2023 06:14:42 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 6EF1940150; Fri, 10 Mar 2023 06:14:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678425281; x=1709961281; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=iFcxElLcnzuLlfwGZRwjgf5BYX3s9wiq8QMvVy/x//E=; b=E7X/0UcQPx6xWJvAI8hWRB0Eij+gM00CSXzZbfp/BtzoJCH2vxFO1iuT eaLpEiXugleOq84pgQBzyr/9QS5S2bEtCoYLjRvVJ/FcKp3lWqYKMm//A b66rDGCJ2jjxqvXbHr+CaVJsn/dJw+vSw5WVgL4KdEbbyJbQnSt8laYNP C3tIPoZ1oxmqnEWt7rLe12KLkmkVjxFSzCCiYfc6OoMc+5EV/8r6SJcrV LT7Pmm6sqnwbtOQQa2Z7/CxDRVFCb7AqVZxyojhdmgUcyaTsEsDmXq1HD U4BHDarlumE7DS3nj/Sq9dzFtsEyPikdFdC8+G8e2yBLgEMIsAsPvqyRn w==; X-IronPort-AV: E=McAfee;i="6500,9779,10644"; a="339011974" X-IronPort-AV: E=Sophos;i="5.98,248,1673942400"; d="scan'208";a="339011974" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2023 21:14:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10644"; a="741827265" X-IronPort-AV: E=Sophos;i="5.98,248,1673942400"; d="scan'208";a="741827265" Received: from shwdenpg561.ccr.corp.intel.com (HELO dpdk..) ([10.239.252.3]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2023 21:14:37 -0800 From: Kaiwen Deng To: dev@dpdk.org Cc: stable@dpdk.org, qiming.yang@intel.com, yidingx.zhou@intel.com, Kaiwen Deng , Chas Williams , "Min Hu (Connor)" , Tomasz Kulasek , Declan Doherty Subject: [PATCH] net/bonding: fix forward packets failed Date: Fri, 10 Mar 2023 12:41:31 +0800 Message-Id: <20230310044131.2052540-1-kaiwenx.deng@intel.com> X-Mailer: git-send-email 2.34.1 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 bond port is failed to forward packets in Link Aggregation 802.3AD(4) mode. Because bond devices get LACP packets from rx_ring instead of tx_ring. This commit will get LACP packets from tx_ring instead. Fixes: 112891cd27e5 ("net/bonding: add dedicated HW queues for LACP control") Cc: stable@dpdk.org Signed-off-by: Kaiwen Deng --- drivers/net/bonding/rte_eth_bond_8023ad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bonding/rte_eth_bond_8023ad.c b/drivers/net/bonding/rte_eth_bond_8023ad.c index 4a266bb2ca..b585752b00 100644 --- a/drivers/net/bonding/rte_eth_bond_8023ad.c +++ b/drivers/net/bonding/rte_eth_bond_8023ad.c @@ -941,7 +941,7 @@ bond_mode_8023ad_periodic_cb(void *arg) /* Find LACP packet to this port. Do not check subtype, * it is done in function that queued packet */ - int retval = rte_ring_dequeue(port->rx_ring, + int retval = rte_ring_dequeue(port->tx_ring, (void **)&lacp_pkt); if (retval != 0) -- 2.34.1