Lines Matching full:rss
27 if 'rss-hash-key' not in data:
29 non_zero = [x for x in data['rss-hash-key'] if x != 0]
30 ksft_eq(bool(non_zero), True, comment=f"RSS key is all zero {data['rss-hash-key']}")
49 # Output will be something like: "New RSS context is 1" or
110 """Check that ntuple rule references RSS context ID"""
112 pattern = f"RSS Context (ID: )?{ctx_id}"
113 ksft_true(re.search(pattern, text), "RSS context not referenced in ntuple rule")
117 """Test basics like updating the main RSS key and indirection table."""
124 want_keys = ['rss-hash-key', 'rss-hash-function', 'rss-indirection-table']
132 key_len = len(data['rss-hash-key'])
139 ksft_eq(key, data['rss-hash-key'])
148 ksft_eq(0, min(data['rss-indirection-table']))
149 ksft_eq(2, max(data['rss-indirection-table']))
156 ksft_eq(0, min(data['rss-indirection-table']))
157 ksft_eq(qcnt - 1, max(data['rss-indirection-table']))
162 ksft_eq(0, min(data['rss-indirection-table']))
163 ksft_eq(1, max(data['rss-indirection-table']))
191 """Make sure queue changes can't override requested RSS config.
193 By default main RSS table should change to include all queues.
194 When user sets a specific RSS config the driver should preserve it,
196 queues used in the user-set RSS config.
220 ksft_eq(0, min(data['rss-indirection-table']))
221 ksft_eq(3, max(data['rss-indirection-table']))
228 ksft_eq(0, min(data['rss-indirection-table']))
229 ksft_eq(4, max(data['rss-indirection-table']))
250 ksft_eq({0, 3}, set(data['rss-indirection-table']))
280 ksft_pr("Driver does not support rss + queue offset")
298 """Test resizing of the RSS table.
300 Some devices dynamically increase and decrease the size of the RSS
321 ksft_eq(0, min(data['rss-indirection-table']))
322 ksft_eq(1, max(data['rss-indirection-table']))
325 data['rss-indirection-table'].count(1) /
326 data['rss-indirection-table'].count(0),
327 f"Table imbalance after resize: {data['rss-indirection-table']}")
334 Most effective way to do that is changing the RSS key. Check that changing
341 key_len = len(data['rss-hash-key'])
363 Test dumping RSS contexts. This tests mostly exercises the kernel APIs.
368 if 'rss-hash-key' in data:
369 key_data = _rss_key_rand(len(data['rss-hash-key']))
435 Test separating traffic into RSS contexts.
486 ksft_eq(min(data['rss-indirection-table']), 2 + i * 2, "Unexpected context cfg: " + str(data))
487 ksft_eq(max(data['rss-indirection-table']), 2 + i * 2 + 1, "Unexpected context cfg: " + str(data))
524 Test separating traffic into RSS contexts.
669 Test that we are not allowed to add a rule pointing to an RSS context
692 Test that deletion returns -EBUSY when an rss context is being used
698 # create additional rss context
738 # create additional rss context
748 raise KsftSkipEx("Ntuple filter with RSS and nonzero action not supported")
758 Allocate a port, direct this port to context 0, then create a new RSS
781 # Create a new RSS context that uses queues 2 and 3