From patchwork Mon Nov 7 08:48:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kaiwen Deng X-Patchwork-Id: 119516 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 03776A0093; Mon, 7 Nov 2022 10:17:08 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9812E40156; Mon, 7 Nov 2022 10:17:08 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 677B140151 for ; Mon, 7 Nov 2022 10:17:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667812627; x=1699348627; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=jjJyxwQN87ZJKZEhugD2iO9mlOnTeG3uvQ0+Y/kAJ+g=; b=Ag7MzBRoQ9UAEumJiweGK/b3cgJVKgLw8leRWuNikhHMeGe0Q5MCpBvg fJNaSzjCcSmzBKUE2XG2LQk+nljvLHiaIca42T+qlsC6fBfHZqDzsF3bR 0sXgXV73yM/t8dW4QDOaljNOmpSSs6AigzjtLRXRHpJGmQSIot/fTpmMm iTsNtAivF+XQYrJhE5OYY8I3WvQ211Nc2Uv6ncb1v11G7zcX3/LD4yiem o3pVHNR5ilos5aDWH+jsDwplp8b7hvExy3nAZ0pHM6VGN04r/aV9k8mpn e7uV1BB1/7sfxQkdLIPQ8CX6kQinn34GJpMTJOaP5M6TpQu3Kxc/4Us2I Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10523"; a="396664606" X-IronPort-AV: E=Sophos;i="5.96,143,1665471600"; d="scan'208";a="396664606" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2022 01:17:06 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10523"; a="630419501" X-IronPort-AV: E=Sophos;i="5.96,143,1665471600"; d="scan'208";a="630419501" Received: from shwdenpg561.ccr.corp.intel.com (HELO dpdk..) ([10.239.252.3]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2022 01:17:03 -0800 From: kevin-intel To: dev@dpdk.org Cc: yidingx.zhou@intel.com, kevin-intel , Qiming Yang , Wenjun Wu , Andrew Rybchenko , Dongdong Liu Subject: [PATCH] net/ixgbe: fix error of drop queue index Date: Mon, 7 Nov 2022 08:48:40 +0000 Message-Id: <20221107084840.89186-1-kaiwenx.deng@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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 drop queue index was not set when adding internal Flow Director Configuration copy in ixgbe device private data. Therefore dropped packets would be received by queue 0 which is set to drop queue. This commit sets drop queue index as IXGBE_FDIR_DROP_QUEUE to fix this issue. Fixes: 5007ac13189d ("ethdev: remove deprecated Flow Director configuration") Signed-off-by: kevin-intel --- drivers/net/ixgbe/ixgbe_flow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ixgbe/ixgbe_flow.c b/drivers/net/ixgbe/ixgbe_flow.c index 1250c2dc12..110ff34fcc 100644 --- a/drivers/net/ixgbe/ixgbe_flow.c +++ b/drivers/net/ixgbe/ixgbe_flow.c @@ -2759,6 +2759,7 @@ ixgbe_parse_fdir_filter(struct rte_eth_dev *dev, int ret; struct ixgbe_hw *hw = IXGBE_DEV_PRIVATE_TO_HW(dev->data->dev_private); struct rte_eth_fdir_conf *fdir_conf = IXGBE_DEV_FDIR_CONF(dev); + fdir_conf->drop_queue = IXGBE_FDIR_DROP_QUEUE; if (hw->mac.type != ixgbe_mac_82599EB && hw->mac.type != ixgbe_mac_X540 &&