From: Andrew Rybchenko <arybchenko@solarflare.com>
To: <dev@dpdk.org>
Cc: Roman Zhukov <Roman.Zhukov@oktetlabs.ru>
Subject: [dpdk-dev] [PATCH 2/3] net/sfc: support DROP action in flow API
Date: Tue, 27 Feb 2018 13:11:19 +0000 [thread overview]
Message-ID: <1519737080-7212-3-git-send-email-arybchenko@solarflare.com> (raw)
In-Reply-To: <1519737080-7212-1-git-send-email-arybchenko@solarflare.com>
From: Roman Zhukov <Roman.Zhukov@oktetlabs.ru>
Signed-off-by: Roman Zhukov <Roman.Zhukov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
---
doc/guides/nics/sfc_efx.rst | 2 ++
drivers/net/sfc/sfc_flow.c | 7 +++++++
2 files changed, 9 insertions(+)
diff --git a/doc/guides/nics/sfc_efx.rst b/doc/guides/nics/sfc_efx.rst
index f41ccdb..36e98d3 100644
--- a/doc/guides/nics/sfc_efx.rst
+++ b/doc/guides/nics/sfc_efx.rst
@@ -183,6 +183,8 @@ Supported actions:
- RSS
+- DROP
+
Validating flow rules depends on the firmware variant.
Ethernet destinaton individual/group match
diff --git a/drivers/net/sfc/sfc_flow.c b/drivers/net/sfc/sfc_flow.c
index 2b8bef8..4fe20a2 100644
--- a/drivers/net/sfc/sfc_flow.c
+++ b/drivers/net/sfc/sfc_flow.c
@@ -1497,6 +1497,13 @@ sfc_flow_parse_actions(struct sfc_adapter *sa,
break;
#endif /* EFSYS_OPT_RX_SCALE */
+ case RTE_FLOW_ACTION_TYPE_DROP:
+ flow->spec.template.efs_dmaq_id =
+ EFX_FILTER_SPEC_RX_DMAQ_ID_DROP;
+
+ is_specified = B_TRUE;
+ break;
+
default:
rte_flow_error_set(error, ENOTSUP,
RTE_FLOW_ERROR_TYPE_ACTION, actions,
--
2.7.4
next prev parent reply other threads:[~2018-02-27 13:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-27 13:11 [dpdk-dev] [PATCH 00/3] net/sfc: support drop " Andrew Rybchenko
2018-02-27 13:11 ` [dpdk-dev] [PATCH 1/3] net/sfc/base: support drop filters on EF10 family NICs Andrew Rybchenko
2018-02-27 13:11 ` Andrew Rybchenko [this message]
2018-02-27 13:11 ` [dpdk-dev] [PATCH 3/3] doc: add flow API drop action support to net/sfc Andrew Rybchenko
2018-03-09 10:52 ` [dpdk-dev] [PATCH 00/3] net/sfc: support drop action in flow API Ferruh Yigit
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=1519737080-7212-3-git-send-email-arybchenko@solarflare.com \
--to=arybchenko@solarflare.com \
--cc=Roman.Zhukov@oktetlabs.ru \
--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).