DPDK patches and discussions
 help / color / mirror / Atom feed
From: Andrey Chilikin <andrey.chilikin@intel.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH 3/3] ixgbe: add check for supported flow director behaviors
Date: Tue, 29 Sep 2015 15:26:40 +0100	[thread overview]
Message-ID: <1443536800-13269-4-git-send-email-andrey.chilikin@intel.com> (raw)
In-Reply-To: <1443536800-13269-1-git-send-email-andrey.chilikin@intel.com>

Handle only supported flow director behaviors

Signed-off-by: Andrey Chilikin <andrey.chilikin@intel.com>
---
 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

  parent reply	other threads:[~2015-09-29 14:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-29 14:26 [dpdk-dev] [PATCH 0/3] Support for flow director behavior "other" on Intel FVL NIC Andrey Chilikin
2015-09-29 14:26 ` [dpdk-dev] [PATCH 1/3] librte_ether: add RTE_ETH_FDIR_OTHER for flow director behavior Andrey Chilikin
2015-09-29 14:38   ` Bruce Richardson
2015-09-29 14:48     ` Chilikin, Andrey
2015-09-29 14:53       ` Bruce Richardson
2015-09-29 14:26 ` [dpdk-dev] [PATCH 2/3] i40e: add RTE_ETH_FDIR_OTHER processing " Andrey Chilikin
2015-09-29 14:26 ` Andrey Chilikin [this message]
2015-09-30 13:43 ` [dpdk-dev] [PATCH v2 0/3] Support for flow director behavior "passthru" on Intel FVL NIC Andrey Chilikin
2015-09-30 13:43   ` [dpdk-dev] [PATCH v2 1/3] librte_ether: add RTE_ETH_FDIR_PASSTHRU for flow director behavior Andrey Chilikin
2015-09-30 13:43   ` [dpdk-dev] [PATCH v2 2/3] i40e: add RTE_ETH_FDIR_PASSTHRU processing " Andrey Chilikin
2015-09-30 13:43   ` [dpdk-dev] [PATCH v2 3/3] ixgbe: add check for supported flow director behaviors Andrey Chilikin
2015-10-19  1:51   ` [dpdk-dev] [PATCH v2 0/3] Support for flow director behavior "passthru" on Intel FVL NIC Wu, Jingjing
2015-11-04 21:54     ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1443536800-13269-4-git-send-email-andrey.chilikin@intel.com \
    --to=andrey.chilikin@intel.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).