Lines Matching full:mpls
8 #include <linux/mpls.h>
12 #include <net/mpls.h>
65 /* Ensure 'data' points at mac_header prior calling mpls manipulating in tcf_mpls_act()
138 NL_SET_ERR_MSG_MOD(extack, "Invalid MPLS label length"); in valid_label()
143 NL_SET_ERR_MSG_MOD(extack, "MPLS label out of range"); in valid_label()
187 NL_SET_ERR_MSG_MOD(extack, "No MPLS params"); in tcf_mpls_init()
218 NL_SET_ERR_MSG_MOD(extack, "Protocol must be set for MPLS pop"); in tcf_mpls_init()
223 NL_SET_ERR_MSG_MOD(extack, "Invalid protocol type for MPLS pop"); in tcf_mpls_init()
229 NL_SET_ERR_MSG_MOD(extack, "Label, TTL, TC or BOS cannot be used with MPLS pop"); in tcf_mpls_init()
237 NL_SET_ERR_MSG_MOD(extack, "Label, TTL, TC, BOS or protocol cannot be used with MPLS dec_ttl"); in tcf_mpls_init()
245 NL_SET_ERR_MSG_MOD(extack, "Label is required for MPLS push"); in tcf_mpls_init()
251 NL_SET_ERR_MSG_MOD(extack, "Protocol must be an MPLS type for MPLS push"); in tcf_mpls_init()
258 mpls_ttl = net->mpls.default_ttl ? in tcf_mpls_init()
259 net->mpls.default_ttl : ACT_MPLS_TTL_DEFAULT; in tcf_mpls_init()
267 NL_SET_ERR_MSG_MOD(extack, "Protocol cannot be used with MPLS modify"); in tcf_mpls_init()
273 NL_SET_ERR_MSG_MOD(extack, "Unknown MPLS action"); in tcf_mpls_init()
417 NL_SET_ERR_MSG_MOD(extack, "Unsupported MPLS mode offload"); in tcf_mpls_offload_act_setup()
443 .kind = "mpls",
453 MODULE_ALIAS_NET_ACT("mpls");
490 MODULE_DESCRIPTION("MPLS manipulation actions");