Lines Matching refs:scope
113 if (handle->scope == NET_SHAPER_SCOPE_UNSPEC) in net_shaper_fill_handle()
120 if (nla_put_u32(msg, NET_SHAPER_A_HANDLE_SCOPE, handle->scope) || in net_shaper_fill_handle()
121 (handle->scope >= NET_SHAPER_SCOPE_QUEUE && in net_shaper_fill_handle()
249 return FIELD_PREP(NET_SHAPER_SCOPE_MASK, handle->scope) | in net_shaper_handle_to_index()
256 handle->scope = FIELD_GET(NET_SHAPER_SCOPE_MASK, index); in net_shaper_index_to_handle()
263 switch (handle->scope) { in net_shaper_default_parent()
267 parent->scope = NET_SHAPER_SCOPE_UNSPEC; in net_shaper_default_parent()
272 parent->scope = NET_SHAPER_SCOPE_NETDEV; in net_shaper_default_parent()
347 if (handle->scope == NET_SHAPER_SCOPE_NODE && in net_shaper_pre_insert()
460 handle->scope = nla_get_u32(tb[NET_SHAPER_A_HANDLE_SCOPE]); in net_shaper_parse_handle()
470 else if (handle->scope == NET_SHAPER_SCOPE_NODE) in net_shaper_parse_handle()
486 ops->capabilities(binding, shaper->handle.scope, &caps); in net_shaper_validate_caps()
512 if (shaper->handle.scope == NET_SHAPER_SCOPE_QUEUE && in net_shaper_validate_caps()
563 if (shaper->handle.scope == NET_SHAPER_SCOPE_UNSPEC) { in net_shaper_parse_info()
608 ops->capabilities(binding, shaper->handle.scope, &caps); in net_shaper_validate_nesting()
612 shaper->handle.scope); in net_shaper_validate_nesting()
640 if (shaper->handle.scope != NET_SHAPER_SCOPE_QUEUE) { in net_shaper_parse_leaf()
645 if (node->handle.scope == NET_SHAPER_SCOPE_NODE) { in net_shaper_parse_leaf()
672 if (shaper->handle.scope != NET_SHAPER_SCOPE_NODE && in net_shaper_parse_node()
673 shaper->handle.scope != NET_SHAPER_SCOPE_NETDEV) { in net_shaper_parse_node()
684 if (shaper->parent.scope != NET_SHAPER_SCOPE_NODE && in net_shaper_parse_node()
685 shaper->parent.scope != NET_SHAPER_SCOPE_NETDEV) { in net_shaper_parse_node()
876 if (handle.scope == NET_SHAPER_SCOPE_NODE && in net_shaper_nl_set_doit()
916 if (parent_handle.scope == NET_SHAPER_SCOPE_NODE) { in __net_shaper_delete()
966 if (node->handle.scope == NET_SHAPER_SCOPE_NODE) { in __net_shaper_group()
974 node->handle.scope, node->handle.id); in __net_shaper_group()
981 if (node->parent.scope == NET_SHAPER_SCOPE_UNSPEC) { in __net_shaper_group()
993 if (node->parent.scope == NET_SHAPER_SCOPE_NODE) { in __net_shaper_group()
997 node->parent.scope, node->parent.id); in __net_shaper_group()
1074 if (WARN_ON_ONCE(node.handle.scope != NET_SHAPER_SCOPE_NETDEV)) in net_shaper_pre_del_node()
1099 update_node = node.handle.scope != NET_SHAPER_SCOPE_NETDEV; in net_shaper_pre_del_node()
1134 if (handle.scope == NET_SHAPER_SCOPE_NODE) { in net_shaper_nl_delete_doit()
1237 if (leaves[i].parent.scope == NET_SHAPER_SCOPE_NODE && in net_shaper_nl_group_doit()
1286 enum net_shaper_scope scope, unsigned long flags, in net_shaper_cap_fill_one() argument
1297 nla_put_u32(msg, NET_SHAPER_A_CAPS_SCOPE, scope)) in net_shaper_cap_fill_one()
1319 enum net_shaper_scope scope; in net_shaper_nl_cap_get_doit() local
1328 scope = nla_get_u32(info->attrs[NET_SHAPER_A_CAPS_SCOPE]); in net_shaper_nl_cap_get_doit()
1330 ops->capabilities(binding, scope, &flags); in net_shaper_nl_cap_get_doit()
1338 ret = net_shaper_cap_fill_one(msg, binding, scope, flags, info); in net_shaper_nl_cap_get_doit()
1355 enum net_shaper_scope scope; in net_shaper_nl_cap_get_dumpit() local
1360 for (scope = 0; scope <= NET_SHAPER_SCOPE_MAX; ++scope) { in net_shaper_nl_cap_get_dumpit()
1363 ops->capabilities(binding, scope, &flags); in net_shaper_nl_cap_get_dumpit()
1367 ret = net_shaper_cap_fill_one(skb, binding, scope, flags, in net_shaper_nl_cap_get_dumpit()
1429 handle.scope = NET_SHAPER_SCOPE_QUEUE; in net_shaper_set_real_num_tx_queues()
1444 if (parent_handle.scope != NET_SHAPER_SCOPE_NODE) in net_shaper_set_real_num_tx_queues()