Lines Matching refs:rings

14         rings = netnl.rings_get({'header': {'dev-index': cfg.ifindex}})
17 if 'tcp-data-split' not in rings:
19 return rings['tcp-data-split']
35 rings = netnl.rings_get({'header': {'dev-index': cfg.ifindex}})
39 if 'tx' not in rings:
55 rings = netnl.rings_get({'header': {'dev-index': cfg.ifindex}})
58 if 'hds-thresh' not in rings:
70 rings = netnl.rings_get({'header': {'dev-index': cfg.ifindex}})
73 if 'tcp-data-split' not in rings:
76 ksft_eq('enabled', rings['tcp-data-split'])
87 rings = netnl.rings_get({'header': {'dev-index': cfg.ifindex}})
90 if 'tcp-data-split' not in rings:
93 ksft_eq('disabled', rings['tcp-data-split'])
104 rings = netnl.rings_get({'header': {'dev-index': cfg.ifindex}})
107 if 'hds-thresh' not in rings:
110 ksft_eq(0, rings['hds-thresh'])
114 rings = netnl.rings_get({'header': {'dev-index': cfg.ifindex}})
117 if 'hds-thresh' not in rings:
119 if 'hds-thresh-max' not in rings:
122 if rings['hds-thresh-max'] < 2:
124 elif rings['hds-thresh-max'] == 2:
128 hds_thresh = random.randint(1, rings['hds-thresh-max'] - 1)
129 if hds_thresh != rings['hds-thresh']:
139 rings = netnl.rings_get({'header': {'dev-index': cfg.ifindex}})
140 ksft_eq(hds_thresh, rings['hds-thresh'])
144 rings = netnl.rings_get({'header': {'dev-index': cfg.ifindex}})
147 if 'hds-thresh' not in rings:
150 … netnl.rings_set({'header': {'dev-index': cfg.ifindex}, 'hds-thresh': rings['hds-thresh-max']})
156 rings = netnl.rings_get({'header': {'dev-index': cfg.ifindex}})
157 ksft_eq(rings['hds-thresh'], rings['hds-thresh-max'])
161 rings = netnl.rings_get({'header': {'dev-index': cfg.ifindex}})
164 if 'hds-thresh' not in rings:
166 if 'hds-thresh-max' not in rings:
168 hds_gt = rings['hds-thresh-max'] + 1