Lines Matching full:do

13 # cover ops with a do, with a dump, and with both.
35 [{'family-id': 16, 'op-policy': {'do': 0, 'dump': 0, 'op-id': 3}},
40 {3:{'do','dump'}, 4:{'dump'}}
64 ksft_true(op['flags'] & {'cmd-cap-do', 'cmd-cap-dump'},
68 ksft_in('cmd-cap-do', ops['nlctrl'][3]['flags'])
70 ksft_not_in('cmd-cap-do', ops['nlctrl'][10]['flags'])
75 # dev-get (id 1) should support both do and dump
76 ksft_in('cmd-cap-do', netdev[1]['flags'])
80 ksft_not_in('cmd-cap-do', netdev[12]['flags'])
83 # napi-set (id 14) is do-only and requires admin
84 ksft_in('cmd-cap-do', netdev[14]['flags'])
89 # not appear in the ops list since they have no do/dump handlers.
108 Test with netdev (split ops) where do and dump can have different
114 # dev-get: do has a real policy with ifindex, dump has no policy
116 pol = ndev.get_policy('dev-get', 'do')
117 ksft_in('ifindex', pol, comment="dev-get do policy should have ifindex")
123 # napi-get: both do and dump have real policies
124 pol_do = ndev.get_policy('napi-get', 'do')
133 # strset-get (has both do and dump, full ops share policy)
134 pol_do = et.get_policy('strset-get', 'do')
135 ksft_ge(len(pol_do), 1, comment="strset-get should have a do policy")
143 # linkinfo-set is do-only (SET command), no dump
144 pol_do = et.get_policy('linkinfo-set', 'do')
145 ksft_ge(len(pol_do), 1, comment="linkinfo-set should have a do policy")
155 real ops that exist, have given modes (do vs dump) and have 'haspol'.
173 if 'do' in modes:
174 ksft_in('cmd-cap-do', ops_by_id[cmd]['flags'],
175 comment=f"{name} cmd {cmd} has no do")
191 # dev-get do policy should have named attributes from the spec
192 pol = ndev.get_policy('dev-get', 'do')