Lines Matching defs:threaded
5 Test napi threaded states.
16 ksft_eq(napi['threaded'], 'enabled')
22 ksft_eq(napi['threaded'], 'disabled')
26 def _set_threaded_state(cfg, threaded) -> None:
27 with open(f"/sys/class/net/{cfg.ifname}/threaded", "wb") as fp:
28 fp.write(str(threaded).encode('utf-8'))
36 threaded = cmd(f"cat /sys/class/net/{cfg.ifname}/threaded").stdout
37 defer(_set_threaded_state, cfg, threaded)
44 Test that threaded state (in the persistent NAPI config) gets updated
57 ksft_eq(napi['threaded'], 'disabled')
66 ksft_eq(napi['threaded'], 'enabled')
72 Test that when napi threaded is enabled at device level and
73 then disabled at napi level for one napi, the threaded state
85 # set threaded
88 # check napi threaded is set for both napis
92 # disable threaded for napi1
93 nl.napi_set({'id': napi1_id, 'threaded': 'disabled'})
103 Test that when napi threaded is enabled at device level,
104 the napi threaded state is preserved after a change in
116 # set threaded
119 # check napi threaded is set for both napis
126 # check napi threaded is set for both napis