From patchwork Thu Jul 20 07:25:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhao1, Wei" X-Patchwork-Id: 27076 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 287235599; Thu, 20 Jul 2017 09:35:04 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 3367629C8 for ; Thu, 20 Jul 2017 09:35:02 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jul 2017 00:35:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.40,382,1496127600"; d="scan'208"; a="1197526909" Received: from dpdk1.bj.intel.com ([172.16.182.84]) by fmsmga002.fm.intel.com with ESMTP; 20 Jul 2017 00:34:44 -0700 From: Wei Zhao To: dev@dpdk.org Cc: Wei Zhao Date: Thu, 20 Jul 2017 15:25:41 +0800 Message-Id: <1500535541-61376-1-git-send-email-wei.zhao1@intel.com> X-Mailer: git-send-email 2.5.5 Subject: [dpdk-dev] [PATCH] net/ixgbe: fix NIC 82599ES port check error 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" This NIC type port check should use port index not mask for 82599ES. Fixes: 16f534e508d ("net/ixgbe: add support 82599ES SCTP packet drop action") Signed-off-by: Wei Zhao --- drivers/net/ixgbe/ixgbe_flow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_flow.c b/drivers/net/ixgbe/ixgbe_flow.c index 2bb5c46..c77bbe2 100644 --- a/drivers/net/ixgbe/ixgbe_flow.c +++ b/drivers/net/ixgbe/ixgbe_flow.c @@ -2546,8 +2546,8 @@ ixgbe_parse_fdir_filter(struct rte_eth_dev *dev, if (hw->mac.type == ixgbe_mac_82599EB && rule->fdirflags == IXGBE_FDIRCMD_DROP && - (rule->mask.src_port_mask != 0 || - rule->mask.dst_port_mask != 0)) + (rule->ixgbe_fdir.formatted.src_port != 0 || + rule->ixgbe_fdir.formatted.dst_port != 0)) return -ENOTSUP; if (fdir_mode == RTE_FDIR_MODE_NONE ||