Lines Matching full:thresh

60     if 'hds-thresh' not in rings:
61 raise KsftSkipEx('hds-thresh not supported by device')
79 if cur.get('hds-thresh') != rings.get('hds-thresh'):
80 arg['hds-thresh'] = rings['hds-thresh']
88 if 'hds-thresh' in rings or 'tcp-data-split' in rings:
133 netnl.rings_set({'header': {'dev-index': cfg.ifindex}, 'hds-thresh': 0})
136 raise KsftSkipEx("hds-thresh-set not supported by the device")
143 if 'hds-thresh' not in rings:
144 raise KsftSkipEx('hds-thresh not supported by device')
146 ksft_eq(0, rings['hds-thresh'])
154 if 'hds-thresh' not in rings:
155 raise KsftSkipEx('hds-thresh not supported by device')
156 if 'hds-thresh-max' not in rings:
157 raise KsftSkipEx('hds-thresh-max not defined by device')
159 if rings['hds-thresh-max'] < 2:
160 raise KsftSkipEx('hds-thresh-max is too small')
161 elif rings['hds-thresh-max'] == 2:
165 hds_thresh = random.randint(1, rings['hds-thresh-max'] - 1)
166 if hds_thresh != rings['hds-thresh']:
170 netnl.rings_set({'header': {'dev-index': cfg.ifindex}, 'hds-thresh': hds_thresh})
173 raise KsftSkipEx("hds-thresh-set not supported by the device")
177 ksft_eq(hds_thresh, rings['hds-thresh'])
185 if 'hds-thresh' not in rings:
186 raise KsftSkipEx('hds-thresh not supported by device')
188 … netnl.rings_set({'header': {'dev-index': cfg.ifindex}, 'hds-thresh': rings['hds-thresh-max']})
191 raise KsftSkipEx("hds-thresh-set not supported by the device")
195 ksft_eq(rings['hds-thresh'], rings['hds-thresh-max'])
203 if 'hds-thresh' not in rings:
204 raise KsftSkipEx('hds-thresh not supported by device')
205 if 'hds-thresh-max' not in rings:
206 raise KsftSkipEx('hds-thresh-max not defined by device')
207 hds_gt = rings['hds-thresh-max'] + 1
209 netnl.rings_set({'header': {'dev-index': cfg.ifindex}, 'hds-thresh': hds_gt})