History

flow_offload: add wake-up-on-lan and queue to flow_action

These actions need to be added to support the ethtool_rx_flow interface. The queue action includes a field to specify the RSS context, that is set via FLOW_RSS flow type flag and the rss_context field in struct ethtool_rxnfc, plus the corresponding queue index. FLOW_RSS implies that rss_context is non-zero, therefore, queue.ctx == 0 means that FLOW_RSS was not set. Also add a field to store the vf index which is stored in the ethtool_rxnfc ring_cookie field.

Pablo Neira Ayuso committed 7 years ago

Commit 8bec2831 parent 2cd173e1 file · +7 −0Browse files

Unified · Split

include/net/flow_offload.h+7−0
@@ -116,6 +116,8 @@ enum flow_action_id { · 115 unmodified lines
116 FLOW_ACTION_ADD,116 FLOW_ACTION_ADD,
117 FLOW_ACTION_CSUM,117 FLOW_ACTION_CSUM,
118 FLOW_ACTION_MARK,118 FLOW_ACTION_MARK,
119 FLOW_ACTION_WAKE,
120 FLOW_ACTION_QUEUE,
119};121};
120 122
121/* This is mirroring enum pedit_header_type definition for easy mapping between123/* This is mirroring enum pedit_header_type definition for easy mapping between
@@ -150,6 +152,11 @@ struct flow_action_entry { · 28 unmodified lines
150 const struct ip_tunnel_info *tunnel; /* FLOW_ACTION_TUNNEL_ENCAP */152 const struct ip_tunnel_info *tunnel; /* FLOW_ACTION_TUNNEL_ENCAP */
151 u32 csum_flags; /* FLOW_ACTION_CSUM */153 u32 csum_flags; /* FLOW_ACTION_CSUM */
152 u32 mark; /* FLOW_ACTION_MARK */154 u32 mark; /* FLOW_ACTION_MARK */
155 struct { /* FLOW_ACTION_QUEUE */
156 u32 ctx;
157 u32 index;
158 u8 vf;
159 } queue;
153 };160 };
154};161};
155 162

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t