From patchwork Tue Aug 8 06:18:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhao1, Wei" X-Patchwork-Id: 27482 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 12C9D2C18; Tue, 8 Aug 2017 08:24:09 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 975FB201 for ; Tue, 8 Aug 2017 08:24:07 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP; 07 Aug 2017 23:24:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.41,341,1498546800"; d="scan'208"; a="1160407257" Received: from dpdk2.bj.intel.com ([172.16.182.198]) by orsmga001.jf.intel.com with ESMTP; 07 Aug 2017 23:24:04 -0700 From: wei zhao To: dev@dpdk.org Cc: qi.z.zhang@intel.com, Wei Zhao , root Date: Tue, 8 Aug 2017 14:18:04 +0800 Message-Id: <20170808061804.64217-1-wei.zhao1@intel.com> X-Mailer: git-send-email 2.9.3 Subject: [dpdk-dev] [PATCH] net/ixgbe: fix MAC VLAN filter fail problem 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" Add a mode type check for MAC VLAN mode, if fdir is in this mode, it do not need to do Sanity check for x550. Fixes: dc0c16105d2d2 ("ixgbe: fix X550 flow director check") Signed-off-by: Wei Zhao Signed-off-by: root --- drivers/net/ixgbe/ixgbe_fdir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_fdir.c b/drivers/net/ixgbe/ixgbe_fdir.c index eb2d558..7c10cab 100644 --- a/drivers/net/ixgbe/ixgbe_fdir.c +++ b/drivers/net/ixgbe/ixgbe_fdir.c @@ -1276,7 +1276,8 @@ ixgbe_fdir_filter_program(struct rte_eth_dev *dev, rule->ixgbe_fdir.formatted.flow_type == IXGBE_ATR_FLOW_TYPE_IPV6) && (info->mask.src_port_mask != 0 || - info->mask.dst_port_mask != 0)) { + info->mask.dst_port_mask != 0) && + rule->mode != RTE_FDIR_MODE_PERFECT_MAC_VLAN) { PMD_DRV_LOG(ERR, "By this device," " IPv4 is not supported without" " L4 protocol and ports masked!");