From: Vishal Kulkarni <vishal@chelsio.com>
To: netdev@vger.kernel.org, davem@davemloft.net
Cc: nirranjan@chelsio.com, rahul.lakkireddy@chelsio.com,
Vishal Kulkarni <vishal@chelsio.com>
Subject: [PATCH net-next 5/5] cxgb4: add action to steer flows to specific Rxq
Date: Fri, 19 Jun 2020 19:51:39 +0530 [thread overview]
Message-ID: <20200619142139.27982-6-vishal@chelsio.com> (raw)
In-Reply-To: <20200619142139.27982-1-vishal@chelsio.com>
Add support for queue action to steer Rx traffic
hitting the flows to specified Rxq.
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: Vishal Kulkarni <vishal@chelsio.com>
---
drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c
index 53dbb3683653..8a176190586d 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c
@@ -425,6 +425,11 @@ void cxgb4_process_flow_actions(struct net_device *in,
process_pedit_field(fs, val, mask, offset, htype);
}
break;
+ case FLOW_ACTION_QUEUE:
+ fs->action = FILTER_PASS;
+ fs->dirsteer = 1;
+ fs->iq = act->queue.index;
+ break;
default:
break;
}
@@ -609,6 +614,9 @@ int cxgb4_validate_flow_actions(struct net_device *dev,
act_pedit = true;
}
break;
+ case FLOW_ACTION_QUEUE:
+ /* Do nothing. cxgb4_set_filter will validate */
+ break;
default:
netdev_err(dev, "%s: Unsupported action\n", __func__);
return -EOPNOTSUPP;
--
2.21.1
next prev parent reply other threads:[~2020-06-19 14:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-19 14:21 [PATCH net-next 0/5] cxgb4: add support for ethtool n-tuple filters Vishal Kulkarni
2020-06-19 14:21 ` [PATCH net-next 1/5] cxgb4: add skeleton " Vishal Kulkarni
2020-06-19 14:21 ` [PATCH net-next 2/5] cxgb4: add ethtool n-tuple filter insertion Vishal Kulkarni
2020-06-19 14:21 ` [PATCH net-next 3/5] cxgb4: add ethtool n-tuple filter deletion Vishal Kulkarni
2020-06-19 14:21 ` [PATCH net-next 4/5] cxgb4: add support to fetch ethtool n-tuple filters Vishal Kulkarni
2020-06-19 14:21 ` Vishal Kulkarni [this message]
2020-06-19 20:17 ` [PATCH net-next 0/5] cxgb4: add support for " David Miller
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=20200619142139.27982-6-vishal@chelsio.com \
--to=vishal@chelsio.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=nirranjan@chelsio.com \
--cc=rahul.lakkireddy@chelsio.com \
/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