Skip to contentSkip to conversation

ethtool: support queue and vf fields for rxclass filters

PATCH New Jacob Keller 2 participants 2 messages Jan 28, 2017 – Mar 18, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ethtool: support queue and vf fields for rxclass filters

Recent kernels have made it possible to specify filters applying to a virtual function by partitioning the ring_cookie (action) value. The lower 32bits will represent the queue, while the next 8bits represent the virtual function.

Add support to view and specify the ring_cookie in this way so that users do not have to manually create action values, and don't need to understand the underlying layout of the ring_cookie value.

Support using queue and vf fields which will fill in their specific bits of the ring_cookie value, using new customized OPT_RING_VF and OPT_RING_QUEUE.

Add support to display the ring cookie value as a split VF identifier and queue.

---
 ethtool.8.in |   7 ++++
 rxclass.c    | 102 +++++++++++++++++++++++++++++++++++++++++++++++++----------
 2 files changed, 92 insertions(+), 17 deletions(-)
ethtool.8.in +7 -0
index 5c36c06385f6..738480abd5b9 100644
@@ -829,6 +829,13 @@ lB	l.
 0 or higher	Rx queue to route the flow
 .TE
 .TP
+.BI vf \ N
+Specifies the Virtual Function the filter applies to. A value of 0 indicates
+the PF, and thus the VF index is offset by 1. Not compatible with action.
+.TP
+.BI queue \ N
+Specifies the Rx queue to send packets to. Not compatible with action.
+.TP
 .BI loc \ N
 Specify the location/ID to insert the rule. This will overwrite
 any rule present in that location and will not go through any
rxclass.c +85 -17

175 lines not on this page · raw message

Signature · 1 line
2.11.0.608.gb2604e8deeff
#1 lore raw

PATCH 1/1 ethtool: support queue and vf fields for rxclass filters

Quoted 23 lines

From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On Behalf Of Jacob Keller
Sent: Friday, January 27, 2017 4:39 PM
To: Intel Wired LAN <[email protected]>
Subject: [Intel-wired-lan] [PATCH] ethtool: support queue and vf fields for rxclass filters

Recent kernels have made it possible to specify filters applying to a virtual function by partitioning the ring_cookie (action) value. The lower 32bits will represent the queue, while the next 8bits represent the virtual function.

Add support to view and specify the ring_cookie in this way so that users do not have to manually create action values, and don't need to understand the underlying layout of the ring_cookie value.

Support using queue and vf fields which will fill in their specific bits of the ring_cookie value, using new customized OPT_RING_VF and OPT_RING_QUEUE.

Add support to display the ring cookie value as a split VF identifier and queue.

Quoted 6 lines
---
 ethtool.8.in |   7 ++++
 rxclass.c    | 102 +++++++++++++++++++++++++++++++++++++++++++++++++-
---------
 2 files changed, 92 insertions(+), 17 deletions(-)