Commit 4dababa2 authored by Vishal Kulkarni's avatar Vishal Kulkarni Committed by David S. Miller

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: default avatarRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: default avatarVishal Kulkarni <vishal@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 27ee2993
...@@ -425,6 +425,11 @@ void cxgb4_process_flow_actions(struct net_device *in, ...@@ -425,6 +425,11 @@ void cxgb4_process_flow_actions(struct net_device *in,
process_pedit_field(fs, val, mask, offset, htype); process_pedit_field(fs, val, mask, offset, htype);
} }
break; break;
case FLOW_ACTION_QUEUE:
fs->action = FILTER_PASS;
fs->dirsteer = 1;
fs->iq = act->queue.index;
break;
default: default:
break; break;
} }
...@@ -609,6 +614,9 @@ int cxgb4_validate_flow_actions(struct net_device *dev, ...@@ -609,6 +614,9 @@ int cxgb4_validate_flow_actions(struct net_device *dev,
act_pedit = true; act_pedit = true;
} }
break; break;
case FLOW_ACTION_QUEUE:
/* Do nothing. cxgb4_set_filter will validate */
break;
default: default:
netdev_err(dev, "%s: Unsupported action\n", __func__); netdev_err(dev, "%s: Unsupported action\n", __func__);
return -EOPNOTSUPP; return -EOPNOTSUPP;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment