From patchwork Tue Sep 22 10:29:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li RongQing X-Patchwork-Id: 78393 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 00EDAA04B5; Tue, 22 Sep 2020 12:29:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D8A4B1DB82; Tue, 22 Sep 2020 12:29:35 +0200 (CEST) Received: from tc-sys-mailedm01.tc.baidu.com (mx57.baidu.com [61.135.168.57]) by dpdk.org (Postfix) with ESMTP id 1D90B1DB82 for ; Tue, 22 Sep 2020 12:29:35 +0200 (CEST) Received: from localhost (cp01-cos-dev01.cp01.baidu.com [10.92.119.46]) by tc-sys-mailedm01.tc.baidu.com (Postfix) with ESMTP id B139B2040053 for ; Tue, 22 Sep 2020 18:29:32 +0800 (CST) From: Li RongQing To: dev@dpdk.org Date: Tue, 22 Sep 2020 18:29:32 +0800 Message-Id: <1600770572-22716-2-git-send-email-lirongqing@baidu.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1600770572-22716-1-git-send-email-lirongqing@baidu.com> References: <1600770572-22716-1-git-send-email-lirongqing@baidu.com> Subject: [dpdk-dev] [PATCH 2/2] net/bonding: fix RX queue conversion X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Dongsheng Rong it should be bond_rx_queue in bond_ethdev_rx_burst_alb in RX path, not bond_tx_queue Fixes: 06fe78b98ccd ("bond: add mode 6") Signed-off-by: Dongsheng Rong Signed-off-by: Li RongQing --- drivers/net/bonding/rte_eth_bond_pmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index 146d4dc4a..01ae8e902 100644 --- a/drivers/net/bonding/rte_eth_bond_pmd.c +++ b/drivers/net/bonding/rte_eth_bond_pmd.c @@ -534,8 +534,8 @@ mode6_debug(const char __rte_unused *info, static uint16_t bond_ethdev_rx_burst_alb(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) { - struct bond_tx_queue *bd_tx_q = (struct bond_tx_queue *)queue; - struct bond_dev_private *internals = bd_tx_q->dev_private; + struct bond_rx_queue *bd_rx_q = (struct bond_rx_queue *)queue; + struct bond_dev_private *internals = bd_rx_q->dev_private; struct rte_ether_hdr *eth_h; uint16_t ether_type, offset; uint16_t nb_recv_pkts;