From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 2A3E8B62 for ; Tue, 29 Sep 2015 16:27:25 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP; 29 Sep 2015 07:27:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,608,1437462000"; d="scan'208";a="815486541" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga002.jf.intel.com with ESMTP; 29 Sep 2015 07:27:05 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id t8TER4B9032487; Tue, 29 Sep 2015 15:27:04 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id t8TER4cl013540; Tue, 29 Sep 2015 15:27:04 +0100 Received: (from achiliki@localhost) by sivswdev02.ir.intel.com with id t8TER4gG013536; Tue, 29 Sep 2015 15:27:04 +0100 From: Andrey Chilikin To: dev@dpdk.org Date: Tue, 29 Sep 2015 15:26:40 +0100 Message-Id: <1443536800-13269-4-git-send-email-andrey.chilikin@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1443536800-13269-1-git-send-email-andrey.chilikin@intel.com> References: <1443536800-13269-1-git-send-email-andrey.chilikin@intel.com> Subject: [dpdk-dev] [PATCH 3/3] ixgbe: add check for supported flow director behaviors X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Sep 2015 14:27:27 -0000 Handle only supported flow director behaviors Signed-off-by: Andrey Chilikin --- drivers/net/ixgbe/ixgbe_fdir.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_fdir.c b/drivers/net/ixgbe/ixgbe_fdir.c index 5c8b833..cf0e8be 100644 --- a/drivers/net/ixgbe/ixgbe_fdir.c +++ b/drivers/net/ixgbe/ixgbe_fdir.c @@ -959,7 +959,8 @@ ixgbe_add_del_fdir_filter(struct rte_eth_dev *dev, " signature mode."); return -EINVAL; } - } else if (fdir_filter->action.rx_queue < IXGBE_MAX_RX_QUEUE_NUM) + } else if (fdir_filter->action.behavior == RTE_ETH_FDIR_ACCEPT && + fdir_filter->action.rx_queue < IXGBE_MAX_RX_QUEUE_NUM) queue = (uint8_t)fdir_filter->action.rx_queue; else return -EINVAL; -- 1.7.4.1