diff options
author | Vishal Kulkarni <vishal@chelsio.com> | 2020-06-19 17:21:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-19 23:17:32 +0300 |
commit | 4dababa232f26eda7e827cfc0360c160549d9a84 (patch) | |
tree | 20931e2123db1ad2d866bd69f7afcd4b91a61fca /drivers/net/ethernet/chelsio | |
parent | 27ee29936443f966547c238a93fd1d9fa4e18c2e (diff) | |
download | linux-4dababa232f26eda7e827cfc0360c160549d9a84.tar.xz |
cxgb4: add action to steer flows to specific Rxq
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c index 3ded4fec6c40..ccc7aab9a8be 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; |