File tree Expand file tree Collapse file tree 2 files changed +24
-3
lines changed
Documentation/netlink/specs
tools/testing/selftests/drivers/net/hw Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,26 @@ definitions:
158
158
-
159
159
name : pse-event-sw-pw-control-error
160
160
doc : PSE faced an error managing the power control from software
161
+ -
162
+ name : input-xfrm
163
+ doc : RSS hash function transformations.
164
+ type : flags
165
+ enum-name :
166
+ name-prefix : rxh-xfrm-
167
+ header : linux/ethtool.h
168
+ entries :
169
+ -
170
+ name : sym-xor
171
+ doc : >-
172
+ XOR the corresponding source and destination fields of each specified
173
+ protocol. Both copies of the XOR'ed fields are fed into the RSS and
174
+ RXHASH calculation. Note that this XORing reduces the input set
175
+ entropy and could be exploited to reduce the RSS queue spread.
176
+ -
177
+ name : sym-or-xor
178
+ doc : >-
179
+ Similar to SYM_XOR, except that one copy of the XOR'ed fields is
180
+ replaced by an OR of the same fields.
161
181
-
162
182
name : rxfh-fields
163
183
name-prefix : rxh-
@@ -1621,6 +1641,7 @@ attribute-sets:
1621
1641
-
1622
1642
name : input-xfrm
1623
1643
type : u32
1644
+ enum : input-xfrm
1624
1645
-
1625
1646
name : start-context
1626
1647
type : u32
Original file line number Diff line number Diff line change @@ -37,11 +37,11 @@ def test_rss_input_xfrm(cfg, ipver):
37
37
if not hasattr (socket , "SO_INCOMING_CPU" ):
38
38
raise KsftSkipEx ("socket.SO_INCOMING_CPU was added in Python 3.11" )
39
39
40
- input_xfrm = cfg .ethnl .rss_get (
41
- { 'header' : { 'dev-name' : cfg . ifname }}). get ('input-xfrm' )
40
+ rss = cfg .ethnl .rss_get ({ 'header' : { 'dev-name' : cfg . ifname }})
41
+ input_xfrm = set ( filter ( lambda x : 'sym' in x , rss . get ('input-xfrm' , {})) )
42
42
43
43
# Check for symmetric xor/or-xor
44
- if not input_xfrm or ( input_xfrm != 1 and input_xfrm != 2 ) :
44
+ if not input_xfrm :
45
45
raise KsftSkipEx ("Symmetric RSS hash not requested" )
46
46
47
47
cpus = set ()
You can’t perform that action at this time.
0 commit comments