Home
last modified time | relevance | path

Searched refs:extack (Results 1 – 25 of 242) sorted by relevance

12345678910

/Linux-v4.19/drivers/net/netdevsim/
Dfib.c68 struct netlink_ext_ack *extack) in nsim_fib_set_max() argument
95 NL_SET_ERR_MSG_MOD(extack, "New size is less than current occupancy"); in nsim_fib_set_max()
105 struct netlink_ext_ack *extack) in nsim_fib_rule_account() argument
114 NL_SET_ERR_MSG_MOD(extack, "Exceeded number of supported fib rule entries"); in nsim_fib_rule_account()
126 struct netlink_ext_ack *extack = info->extack; in nsim_fib_rule_event() local
131 err = nsim_fib_rule_account(&data->ipv4.rules, add, extack); in nsim_fib_rule_event()
134 err = nsim_fib_rule_account(&data->ipv6.rules, add, extack); in nsim_fib_rule_event()
142 struct netlink_ext_ack *extack) in nsim_fib_account() argument
151 NL_SET_ERR_MSG_MOD(extack, "Exceeded number of supported fib entries"); in nsim_fib_account()
163 struct netlink_ext_ack *extack = info->extack; in nsim_fib_event() local
[all …]
Dbpf.c133 NSIM_EA(cls_bpf->common.extack, in nsim_bpf_setup_tc_block_cb()
142 NSIM_EA(cls_bpf->common.extack, in nsim_bpf_setup_tc_block_cb()
148 NSIM_EA(cls_bpf->common.extack, in nsim_bpf_setup_tc_block_cb()
154 NSIM_EA(cls_bpf->common.extack, in nsim_bpf_setup_tc_block_cb()
170 NSIM_EA(cls_bpf->common.extack, in nsim_bpf_setup_tc_block_cb()
191 NSIM_EA(bpf->extack, "TC program is already loaded"); in nsim_xdp_offload_prog()
208 NSIM_EA(bpf->extack, "driver XDP disabled in DebugFS"); in nsim_xdp_set_prog()
212 NSIM_EA(bpf->extack, "XDP offload disabled in DebugFS"); in nsim_xdp_set_prog()
275 NSIM_EA(bpf->extack, "attempt to load offloaded prog to drv"); in nsim_setup_prog_checks()
279 NSIM_EA(bpf->extack, "MTU too large w/ XDP enabled"); in nsim_setup_prog_checks()
[all …]
/Linux-v4.19/net/sched/
Dact_tunnel_key.c72 struct netlink_ext_ack *extack) in tunnel_key_copy_geneve_opt() argument
79 nla, geneve_opt_policy, extack); in tunnel_key_copy_geneve_opt()
86 NL_SET_ERR_MSG(extack, "Missing tunnel key geneve option class, type or data"); in tunnel_key_copy_geneve_opt()
93 NL_SET_ERR_MSG(extack, "Tunnel key geneve option data is less than 4 bytes long"); in tunnel_key_copy_geneve_opt()
97 NL_SET_ERR_MSG(extack, "Tunnel key geneve option data is not a multiple of 4 bytes long"); in tunnel_key_copy_geneve_opt()
122 int dst_len, struct netlink_ext_ack *extack) in tunnel_key_copy_opts() argument
128 enc_opts_policy, extack); in tunnel_key_copy_opts()
136 dst_len, extack); in tunnel_key_copy_opts()
149 NL_SET_ERR_MSG(extack, "Empty list of tunnel options"); in tunnel_key_copy_opts()
154 NL_SET_ERR_MSG(extack, "Trailing data after parsing tunnel key options attributes"); in tunnel_key_copy_opts()
[all …]
Dcls_api.c63 tcf_proto_lookup_ops(const char *kind, struct netlink_ext_ack *extack) in tcf_proto_lookup_ops() argument
85 NL_SET_ERR_MSG(extack, "TC classifier not found"); in tcf_proto_lookup_ops()
156 struct netlink_ext_ack *extack) in tcf_proto_create() argument
165 tp->ops = tcf_proto_lookup_ops(kind, extack); in tcf_proto_create()
188 struct netlink_ext_ack *extack) in tcf_proto_destroy() argument
190 tp->ops->destroy(tp, extack); in tcf_proto_destroy()
377 struct netlink_ext_ack *extack) in tcf_block_offload_cmd() argument
384 bo.extack = extack; in tcf_block_offload_cmd()
390 struct netlink_ext_ack *extack) in tcf_block_offload_bind() argument
402 NL_SET_ERR_MSG(extack, "Bind to offloaded block failed as dev has offload disabled"); in tcf_block_offload_bind()
[all …]
Dcls_matchall.c65 struct netlink_ext_ack *extack) in mall_destroy_hw_filter() argument
70 tc_cls_common_offload_init(&cls_mall.common, tp, head->flags, extack); in mall_destroy_hw_filter()
81 struct netlink_ext_ack *extack) in mall_replace_hw_filter() argument
88 tc_cls_common_offload_init(&cls_mall.common, tp, head->flags, extack); in mall_replace_hw_filter()
109 static void mall_destroy(struct tcf_proto *tp, struct netlink_ext_ack *extack) in mall_destroy() argument
119 mall_destroy_hw_filter(tp, head, (unsigned long) head, extack); in mall_destroy()
141 struct netlink_ext_ack *extack) in mall_set_parms() argument
145 err = tcf_exts_validate(net, tp, tb, est, &head->exts, ovr, extack); in mall_set_parms()
159 void **arg, bool ovr, struct netlink_ext_ack *extack) in mall_change() argument
198 extack); in mall_change()
[all …]
Dcls_u32.c489 struct netlink_ext_ack *extack) in u32_clear_hw_hnode() argument
494 tc_cls_common_offload_init(&cls_u32.common, tp, h->flags, extack); in u32_clear_hw_hnode()
504 u32 flags, struct netlink_ext_ack *extack) in u32_replace_hw_hnode() argument
512 tc_cls_common_offload_init(&cls_u32.common, tp, flags, extack); in u32_replace_hw_hnode()
533 struct netlink_ext_ack *extack) in u32_remove_hw_knode() argument
538 tc_cls_common_offload_init(&cls_u32.common, tp, n->flags, extack); in u32_remove_hw_knode()
547 u32 flags, struct netlink_ext_ack *extack) in u32_replace_hw_knode() argument
555 tc_cls_common_offload_init(&cls_u32.common, tp, flags, extack); in u32_replace_hw_knode()
587 struct netlink_ext_ack *extack) in u32_clear_hnode() argument
597 u32_remove_hw_knode(tp, n, extack); in u32_clear_hnode()
[all …]
Dsch_api.c397 struct netlink_ext_ack *extack) in qdisc_get_rtab() argument
403 NL_SET_ERR_MSG(extack, "Invalid rate table parameters for searching"); in qdisc_get_rtab()
425 NL_SET_ERR_MSG(extack, "Failed to allocate new qdisc rate table"); in qdisc_get_rtab()
458 struct netlink_ext_ack *extack) in qdisc_get_stab() argument
467 err = nla_parse_nested(tb, TCA_STAB_MAX, opt, stab_policy, extack); in qdisc_get_stab()
471 NL_SET_ERR_MSG(extack, "Size table base attribute is missing"); in qdisc_get_stab()
479 NL_SET_ERR_MSG(extack, "Size table data attribute is missing"); in qdisc_get_stab()
487 NL_SET_ERR_MSG(extack, "Invalid size of size table"); in qdisc_get_stab()
939 struct netlink_ext_ack *extack) in qdisc_graft() argument
955 NL_SET_ERR_MSG(extack, "Device does not have an ingress queue"); in qdisc_graft()
[all …]
Dact_api.c287 struct netlink_ext_ack *extack) in tcf_generic_walker() argument
297 NL_SET_ERR_MSG(extack, "tcf_generic_walker: unknown command"); in tcf_generic_walker()
794 struct netlink_ext_ack *extack) in tcf_action_init_1() argument
805 err = nla_parse_nested(tb, TCA_ACT_MAX, nla, NULL, extack); in tcf_action_init_1()
811 NL_SET_ERR_MSG(extack, "TC action kind must be specified"); in tcf_action_init_1()
815 NL_SET_ERR_MSG(extack, "TC action name too long"); in tcf_action_init_1()
822 NL_SET_ERR_MSG(extack, "TC cookie size above the maximum"); in tcf_action_init_1()
828 NL_SET_ERR_MSG(extack, "No memory to generate TC cookie"); in tcf_action_init_1()
835 NL_SET_ERR_MSG(extack, "TC action name too long"); in tcf_action_init_1()
863 NL_SET_ERR_MSG(extack, "Failed to load TC action module"); in tcf_action_init_1()
[all …]
Dsch_etf.c43 struct netlink_ext_ack *extack) in validate_input_params() argument
56 NL_SET_ERR_MSG(extack, "Dynamic clockids are not supported"); in validate_input_params()
61 NL_SET_ERR_MSG(extack, "Invalid clockid. CLOCK_TAI must be used"); in validate_input_params()
66 NL_SET_ERR_MSG(extack, "Delta must be positive"); in validate_input_params()
288 struct netlink_ext_ack *extack) in etf_enable_offload() argument
298 NL_SET_ERR_MSG(extack, "Specified device does not support ETF offload"); in etf_enable_offload()
307 NL_SET_ERR_MSG(extack, "Specified device failed to setup ETF hardware offload"); in etf_enable_offload()
315 struct netlink_ext_ack *extack) in etf_init() argument
324 NL_SET_ERR_MSG(extack, in etf_init()
329 err = nla_parse_nested(tb, TCA_ETF_MAX, opt, etf_policy, extack); in etf_init()
[all …]
Dcls_bpf.c149 struct netlink_ext_ack *extack) in cls_bpf_offload_cmd() argument
161 extack); in cls_bpf_offload_cmd()
175 cls_bpf_offload_cmd(tp, oldprog, prog, extack); in cls_bpf_offload_cmd()
196 struct netlink_ext_ack *extack) in cls_bpf_offload() argument
210 return cls_bpf_offload_cmd(tp, prog, oldprog, extack); in cls_bpf_offload()
215 struct netlink_ext_ack *extack) in cls_bpf_stop_offload() argument
219 err = cls_bpf_offload_cmd(tp, NULL, prog, extack); in cls_bpf_stop_offload()
286 struct netlink_ext_ack *extack) in __cls_bpf_delete() argument
291 cls_bpf_stop_offload(tp, prog, extack); in __cls_bpf_delete()
301 struct netlink_ext_ack *extack) in cls_bpf_delete() argument
[all …]
Dsch_cbs.c265 struct netlink_ext_ack *extack) in cbs_enable_offload() argument
272 NL_SET_ERR_MSG(extack, "Specified device does not support cbs offload"); in cbs_enable_offload()
286 NL_SET_ERR_MSG(extack, "Specified device failed to setup cbs hardware offload"); in cbs_enable_offload()
297 struct netlink_ext_ack *extack) in cbs_change() argument
305 err = nla_parse_nested(tb, TCA_CBS_MAX, opt, cbs_policy, extack); in cbs_change()
310 NL_SET_ERR_MSG(extack, "Missing CBS parameter which are mandatory"); in cbs_change()
329 err = cbs_enable_offload(dev, q, qopt, extack); in cbs_change()
345 struct netlink_ext_ack *extack) in cbs_init() argument
351 NL_SET_ERR_MSG(extack, "Missing CBS qdisc options which are mandatory"); in cbs_init()
356 sch->handle, extack); in cbs_init()
[all …]
Dsch_ingress.c52 struct netlink_ext_ack *extack) in ingress_tcf_block() argument
81 struct netlink_ext_ack *extack) in ingress_init() argument
94 return tcf_block_get_ext(&q->block, sch, &q->block_info, extack); in ingress_init()
169 struct netlink_ext_ack *extack) in clsact_tcf_block() argument
212 struct netlink_ext_ack *extack) in clsact_init() argument
228 extack); in clsact_init()
238 return tcf_block_get_ext(&q->egress_block, sch, &q->egress_block_info, extack); in clsact_init()
Dsch_drr.c68 struct netlink_ext_ack *extack) in drr_change_class() argument
78 NL_SET_ERR_MSG(extack, "DRR options are required for this operation"); in drr_change_class()
82 err = nla_parse_nested(tb, TCA_DRR_MAX, opt, drr_policy, extack); in drr_change_class()
89 NL_SET_ERR_MSG(extack, "Specified DRR quantum cannot be zero"); in drr_change_class()
103 NL_SET_ERR_MSG(extack, "Failed to replace estimator"); in drr_change_class()
136 NL_SET_ERR_MSG(extack, "Failed to replace estimator"); in drr_change_class()
185 struct netlink_ext_ack *extack) in drr_tcf_block() argument
190 NL_SET_ERR_MSG(extack, "DRR classid must be zero"); in drr_tcf_block()
217 struct netlink_ext_ack *extack) in drr_graft_class() argument
425 struct netlink_ext_ack *extack) in drr_init_qdisc() argument
[all …]
/Linux-v4.19/net/8021q/
Dvlan_netlink.c43 struct netlink_ext_ack *extack) in vlan_validate() argument
51 NL_SET_ERR_MSG_MOD(extack, "Invalid link address"); in vlan_validate()
55 NL_SET_ERR_MSG_MOD(extack, "Invalid link address"); in vlan_validate()
61 NL_SET_ERR_MSG_MOD(extack, "VLAN properties not specified"); in vlan_validate()
71 NL_SET_ERR_MSG_MOD(extack, "Invalid VLAN protocol"); in vlan_validate()
79 NL_SET_ERR_MSG_MOD(extack, "Invalid VLAN id"); in vlan_validate()
88 NL_SET_ERR_MSG_MOD(extack, "Invalid VLAN flags"); in vlan_validate()
95 NL_SET_ERR_MSG_MOD(extack, "Invalid ingress QOS map"); in vlan_validate()
100 NL_SET_ERR_MSG_MOD(extack, "Invalid egress QOS map"); in vlan_validate()
108 struct netlink_ext_ack *extack) in vlan_changelink() argument
[all …]
/Linux-v4.19/include/linux/
Dnetlink.h87 #define NL_SET_ERR_MSG(extack, msg) do { \ argument
89 struct netlink_ext_ack *__extack = (extack); \
95 #define NL_SET_ERR_MSG_MOD(extack, msg) \ argument
96 NL_SET_ERR_MSG((extack), KBUILD_MODNAME ": " msg)
98 #define NL_SET_BAD_ATTR(extack, attr) do { \ argument
99 if ((extack)) \
100 (extack)->bad_attr = (attr); \
103 #define NL_SET_ERR_MSG_ATTR(extack, attr, msg) do { \ argument
105 struct netlink_ext_ack *__extack = (extack); \
118 const struct netlink_ext_ack *extack);
/Linux-v4.19/include/net/
Dpkt_cls.h49 struct netlink_ext_ack *extack);
52 struct netlink_ext_ack *extack);
81 struct netlink_ext_ack *extack);
84 void *cb_priv, struct netlink_ext_ack *extack);
97 struct netlink_ext_ack *extack) in tcf_block_get() argument
105 struct netlink_ext_ack *extack) in tcf_block_get_ext() argument
171 struct netlink_ext_ack *extack) in __tcf_block_cb_register() argument
179 void *cb_priv, struct netlink_ext_ack *extack) in tcf_block_cb_register() argument
391 struct netlink_ext_ack *extack);
572 struct netlink_ext_ack *extack) in tcf_change_indev() argument
[all …]
Dlwtunnel.h40 struct netlink_ext_ack *extack);
113 struct netlink_ext_ack *extack);
115 struct netlink_ext_ack *extack);
120 struct netlink_ext_ack *extack);
196 struct netlink_ext_ack *extack) in lwtunnel_valid_encap_type() argument
198 NL_SET_ERR_MSG(extack, "CONFIG_LWTUNNEL is not enabled in this kernel"); in lwtunnel_valid_encap_type()
202 struct netlink_ext_ack *extack) in lwtunnel_valid_encap_type_attr() argument
214 struct netlink_ext_ack *extack) in lwtunnel_build_state() argument
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_flower.c21 struct netlink_ext_ack *extack) in mlxsw_sp_flower_parse_actions() argument
30 err = mlxsw_sp_acl_rulei_act_count(mlxsw_sp, rulei, extack); in mlxsw_sp_flower_parse_actions()
38 NL_SET_ERR_MSG_MOD(extack, "Cannot append terminate action"); in mlxsw_sp_flower_parse_actions()
44 NL_SET_ERR_MSG_MOD(extack, "Cannot append drop action"); in mlxsw_sp_flower_parse_actions()
50 NL_SET_ERR_MSG_MOD(extack, "Cannot append trap action"); in mlxsw_sp_flower_parse_actions()
67 NL_SET_ERR_MSG_MOD(extack, "Cannot append jump action"); in mlxsw_sp_flower_parse_actions()
78 fid_index, extack); in mlxsw_sp_flower_parse_actions()
84 out_dev, extack); in mlxsw_sp_flower_parse_actions()
92 extack); in mlxsw_sp_flower_parse_actions()
103 proto, prio, extack); in mlxsw_sp_flower_parse_actions()
[all …]
Dcore_acl_flex_actions.h53 struct netlink_ext_ack *extack);
56 struct netlink_ext_ack *extack);
59 struct netlink_ext_ack *extack);
64 struct netlink_ext_ack *extack);
66 struct netlink_ext_ack *extack);
Dspectrum_acl.c522 struct netlink_ext_ack *extack) in mlxsw_sp_acl_rulei_act_fwd() argument
530 NL_SET_ERR_MSG_MOD(extack, "Invalid output device"); in mlxsw_sp_acl_rulei_act_fwd()
535 NL_SET_ERR_MSG_MOD(extack, "Invalid output device"); in mlxsw_sp_acl_rulei_act_fwd()
548 local_port, in_port, extack); in mlxsw_sp_acl_rulei_act_fwd()
555 struct netlink_ext_ack *extack) in mlxsw_sp_acl_rulei_act_mirror() argument
561 NL_SET_ERR_MSG_MOD(extack, "Only a single mirror source is allowed"); in mlxsw_sp_acl_rulei_act_mirror()
572 extack); in mlxsw_sp_acl_rulei_act_mirror()
578 struct netlink_ext_ack *extack) in mlxsw_sp_acl_rulei_act_vlan() argument
591 NL_SET_ERR_MSG_MOD(extack, "Unsupported VLAN protocol"); in mlxsw_sp_acl_rulei_act_vlan()
599 extack); in mlxsw_sp_acl_rulei_act_vlan()
[all …]
/Linux-v4.19/net/core/
Dfib_rules.c343 struct netlink_ext_ack *extack) in call_fib_rule_notifiers() argument
347 .info.extack = extack, in call_fib_rule_notifiers()
470 struct netlink_ext_ack *extack) in fib_nl2rule_l3mdev() argument
474 NL_SET_ERR_MSG(extack, "Invalid l3mdev attribute"); in fib_nl2rule_l3mdev()
482 struct netlink_ext_ack *extack) in fib_nl2rule_l3mdev() argument
484 NL_SET_ERR_MSG(extack, "l3mdev support is not enabled in kernel"); in fib_nl2rule_l3mdev()
490 struct netlink_ext_ack *extack, in fib_nl2rule() argument
505 NL_SET_ERR_MSG(extack, "Invalid source address"); in fib_nl2rule()
513 NL_SET_ERR_MSG(extack, "Invalid dst address"); in fib_nl2rule()
572 fib_nl2rule_l3mdev(tb[FRA_L3MDEV], nlrule, extack) < 0) in fib_nl2rule()
[all …]
Dlwtunnel.c109 struct netlink_ext_ack *extack) in lwtunnel_build_state() argument
117 NL_SET_ERR_MSG_ATTR(extack, encap, in lwtunnel_build_state()
127 ret = ops->build_state(encap, family, cfg, lws, extack); in lwtunnel_build_state()
137 NL_SET_ERR_MSG_ATTR(extack, encap, in lwtunnel_build_state()
145 int lwtunnel_valid_encap_type(u16 encap_type, struct netlink_ext_ack *extack) in lwtunnel_valid_encap_type() argument
152 NL_SET_ERR_MSG(extack, "Unknown lwt encapsulation type"); in lwtunnel_valid_encap_type()
176 NL_SET_ERR_MSG(extack, "lwt encapsulation type not supported"); in lwtunnel_valid_encap_type()
183 struct netlink_ext_ack *extack) in lwtunnel_valid_encap_type_attr() argument
201 extack) != 0) in lwtunnel_valid_encap_type_attr()
/Linux-v4.19/net/ipv4/
Dfib_semantics.c465 struct netlink_ext_ack *extack) in fib_count_nexthops() argument
476 NL_SET_ERR_MSG(extack, in fib_count_nexthops()
486 struct netlink_ext_ack *extack) in fib_get_nhs() argument
494 NL_SET_ERR_MSG(extack, in fib_get_nhs()
500 NL_SET_ERR_MSG(extack, in fib_get_nhs()
530 NL_SET_BAD_ATTR(extack, nla); in fib_get_nhs()
531 NL_SET_ERR_MSG(extack, in fib_get_nhs()
539 &lwtstate, extack); in fib_get_nhs()
614 struct netlink_ext_ack *extack) in fib_encap_match() argument
623 cfg, &lwtstate, extack); in fib_encap_match()
[all …]
/Linux-v4.19/net/mpls/
Daf_mpls.c720 u8 via_addr[], struct netlink_ext_ack *extack) in nla_get_via() argument
727 NL_SET_ERR_MSG_ATTR(extack, nla, in nla_get_via()
734 NL_SET_ERR_MSG_ATTR(extack, nla, in nla_get_via()
802 struct netlink_ext_ack *extack) in mpls_nh_build() argument
811 nh->nh_label, extack); in mpls_nh_build()
818 __mpls_nh_via(rt, nh), extack); in mpls_nh_build()
886 struct netlink_ext_ack *extack) in mpls_nh_build_multi() argument
920 max_labels, extack); in mpls_nh_build_multi()
940 struct netlink_ext_ack *extack) in mpls_label_ok() argument
946 NL_SET_ERR_MSG(extack, in mpls_label_ok()
[all …]
/Linux-v4.19/net/netfilter/
Dnfnetlink.c160 struct netlink_ext_ack *extack) in nfnetlink_rcv_msg() argument
210 ss->cb[cb_id].policy, extack); in nfnetlink_rcv_msg()
219 extack); in nfnetlink_rcv_msg()
230 extack); in nfnetlink_rcv_msg()
245 struct netlink_ext_ack extack; member
249 const struct netlink_ext_ack *extack) in nfnl_err_add() argument
259 nfnl_err->extack = *extack; in nfnl_err_add()
285 &nfnl_err->extack); in nfnl_err_deliver()
303 struct netlink_ext_ack extack; in nfnetlink_rcv_batch() local
365 memset(&extack, 0, sizeof(extack)); in nfnetlink_rcv_batch()
[all …]

12345678910