Lines Matching refs:extack

642 				struct netlink_ext_ack *extack)  in is_valid_mdb_source()  argument
647 NL_SET_ERR_MSG_MOD(extack, "IPv4 invalid source address length"); in is_valid_mdb_source()
651 NL_SET_ERR_MSG_MOD(extack, "IPv4 multicast source address is not allowed"); in is_valid_mdb_source()
660 NL_SET_ERR_MSG_MOD(extack, "IPv6 invalid source address length"); in is_valid_mdb_source()
665 NL_SET_ERR_MSG_MOD(extack, "IPv6 multicast source address is not allowed"); in is_valid_mdb_source()
672 NL_SET_ERR_MSG_MOD(extack, "Invalid protocol used with source address"); in is_valid_mdb_source()
682 struct netlink_ext_ack *extack) in __br_mdb_choose_context() argument
693 NL_SET_ERR_MSG_MOD(extack, "Cannot add an entry without a vlan when vlan snooping is enabled"); in __br_mdb_choose_context()
699 NL_SET_ERR_MSG_MOD(extack, "Vlan is not configured"); in __br_mdb_choose_context()
703 NL_SET_ERR_MSG_MOD(extack, "Vlan's multicast processing is disabled"); in __br_mdb_choose_context()
736 struct netlink_ext_ack *extack) in br_mdb_add_group_sg() argument
747 NL_SET_ERR_MSG_MOD(extack, "(S, G) group is already joined by port"); in br_mdb_add_group_sg()
758 MCAST_INCLUDE, cfg->rt_protocol, extack); in br_mdb_add_group_sg()
788 struct netlink_ext_ack *extack) in br_mdb_add_group_src_fwd() argument
799 NL_SET_ERR_MSG_MOD(extack, "Failed to add (S, G) MDB entry"); in br_mdb_add_group_src_fwd()
817 return br_mdb_add_group_sg(&sg_cfg, sgmp, brmctx, flags, extack); in br_mdb_add_group_src_fwd()
824 struct netlink_ext_ack *extack) in br_mdb_add_group_src() argument
834 NL_SET_ERR_MSG_MOD(extack, "Failed to add new source entry"); in br_mdb_add_group_src()
838 NL_SET_ERR_MSG_MOD(extack, "Source entry already exists"); in br_mdb_add_group_src()
849 err = br_mdb_add_group_src_fwd(cfg, &src->addr, brmctx, extack); in br_mdb_add_group_src()
876 struct netlink_ext_ack *extack) in br_mdb_add_group_srcs() argument
882 &cfg->src_entries[i], extack); in br_mdb_add_group_srcs()
898 struct netlink_ext_ack *extack) in br_mdb_replace_group_srcs() argument
907 err = br_mdb_add_group_srcs(cfg, pg, brmctx, extack); in br_mdb_replace_group_srcs()
929 struct netlink_ext_ack *extack) in br_mdb_replace_group_star_g() argument
934 err = br_mdb_replace_group_srcs(cfg, pg, brmctx, extack); in br_mdb_replace_group_star_g()
960 struct netlink_ext_ack *extack) in br_mdb_add_group_star_g() argument
972 NL_SET_ERR_MSG_MOD(extack, "(*, G) group is already joined by port"); in br_mdb_add_group_star_g()
976 flags, extack); in br_mdb_add_group_star_g()
984 extack); in br_mdb_add_group_star_g()
988 err = br_mdb_add_group_srcs(cfg, p, brmctx, extack); in br_mdb_add_group_star_g()
1013 struct netlink_ext_ack *extack) in br_mdb_add_group() argument
1023 brmctx = __br_mdb_choose_context(br, entry, extack); in br_mdb_add_group()
1034 NL_SET_ERR_MSG_MOD(extack, "Group is already joined by host"); in br_mdb_add_group()
1048 return br_mdb_add_group_star_g(cfg, mp, brmctx, flags, extack); in br_mdb_add_group()
1050 return br_mdb_add_group_sg(cfg, mp, brmctx, flags, extack); in br_mdb_add_group()
1054 struct netlink_ext_ack *extack) in __br_mdb_add() argument
1059 ret = br_mdb_add_group(cfg, extack); in __br_mdb_add()
1068 struct netlink_ext_ack *extack) in br_mdb_config_src_entry_init() argument
1074 br_mdbe_src_list_entry_pol, extack); in br_mdb_config_src_entry_init()
1078 if (NL_REQ_ATTR_CHECK(extack, src_entry, tb, MDBE_SRCATTR_ADDRESS)) in br_mdb_config_src_entry_init()
1081 if (!is_valid_mdb_source(tb[MDBE_SRCATTR_ADDRESS], proto, extack)) in br_mdb_config_src_entry_init()
1093 struct netlink_ext_ack *extack) in br_mdb_config_src_list_init() argument
1103 NL_SET_ERR_MSG_FMT_MOD(extack, "Exceeded maximum number of source entries (%u)", in br_mdb_config_src_list_init()
1117 extack); in br_mdb_config_src_list_init()
1137 struct netlink_ext_ack *extack) in br_mdb_config_attrs_init() argument
1143 br_mdbe_attrs_pol, extack); in br_mdb_config_attrs_init()
1149 cfg->entry->addr.proto, extack)) in br_mdb_config_attrs_init()
1156 NL_SET_ERR_MSG_MOD(extack, "Filter mode cannot be set for host groups"); in br_mdb_config_attrs_init()
1160 NL_SET_ERR_MSG_MOD(extack, "Filter mode can only be set for (*, G) entries"); in br_mdb_config_attrs_init()
1170 NL_SET_ERR_MSG_MOD(extack, "Source list cannot be set for host groups"); in br_mdb_config_attrs_init()
1174 NL_SET_ERR_MSG_MOD(extack, "Source list can only be set for (*, G) entries"); in br_mdb_config_attrs_init()
1178 NL_SET_ERR_MSG_MOD(extack, "Source list cannot be set without filter mode"); in br_mdb_config_attrs_init()
1182 cfg, extack); in br_mdb_config_attrs_init()
1188 NL_SET_ERR_MSG_MOD(extack, "Cannot add (*, G) INCLUDE with an empty source list"); in br_mdb_config_attrs_init()
1194 NL_SET_ERR_MSG_MOD(extack, "Protocol cannot be set for host groups"); in br_mdb_config_attrs_init()
1205 struct netlink_ext_ack *extack) in br_mdb_config_init() argument
1217 NL_SET_ERR_MSG_MOD(extack, "Bridge device is not running"); in br_mdb_config_init()
1222 NL_SET_ERR_MSG_MOD(extack, "Bridge's multicast processing is disabled"); in br_mdb_config_init()
1233 NL_SET_ERR_MSG_MOD(extack, "Port net device doesn't exist"); in br_mdb_config_init()
1239 NL_SET_ERR_MSG_MOD(extack, "Net device is not a bridge port"); in br_mdb_config_init()
1244 NL_SET_ERR_MSG_MOD(extack, "Port belongs to a different bridge device"); in br_mdb_config_init()
1251 NL_SET_ERR_MSG_MOD(extack, "IPv4 entry group address 0.0.0.0 is not allowed"); in br_mdb_config_init()
1257 extack); in br_mdb_config_init()
1270 struct netlink_ext_ack *extack) in br_mdb_add() argument
1277 err = br_mdb_config_init(&cfg, dev, tb, nlmsg_flags, extack); in br_mdb_add()
1286 NL_SET_ERR_MSG_MOD(extack, "Flags are not allowed for host groups"); in br_mdb_add()
1290 NL_SET_ERR_MSG_MOD(extack, "Groups with sources cannot be manually host joined"); in br_mdb_add()
1296 NL_SET_ERR_MSG_MOD(extack, "Only permanent L2 entries allowed"); in br_mdb_add()
1302 NL_SET_ERR_MSG_MOD(extack, "Port is in disabled state and entry is not permanent"); in br_mdb_add()
1317 err = __br_mdb_add(&cfg, extack); in br_mdb_add()
1322 err = __br_mdb_add(&cfg, extack); in br_mdb_add()
1372 struct netlink_ext_ack *extack) in br_mdb_del() argument
1379 err = br_mdb_config_init(&cfg, dev, tb, 0, extack); in br_mdb_del()