Lines Matching refs:extack

382 				 struct netlink_ext_ack *extack)  in br_mdb_valid_dump_req()  argument
387 NL_SET_ERR_MSG_MOD(extack, "Invalid header for mdb dump request"); in br_mdb_valid_dump_req()
393 NL_SET_ERR_MSG_MOD(extack, "Filtering by device index is not supported for mdb dump request"); in br_mdb_valid_dump_req()
397 NL_SET_ERR_MSG(extack, "Invalid data after header in mdb dump request"); in br_mdb_valid_dump_req()
412 int err = br_mdb_valid_dump_req(cb->nlh, cb->extack); in br_mdb_dump()
606 struct netlink_ext_ack *extack) in br_mdb_replay_one() argument
611 .extack = extack, in br_mdb_replay_one()
643 struct netlink_ext_ack *extack) in br_mdb_replay() argument
713 action, ctx, extack); in br_mdb_replay()
901 struct netlink_ext_ack *extack) in is_valid_mdb_entry() argument
904 NL_SET_ERR_MSG_MOD(extack, "Zero entry ifindex is not allowed"); in is_valid_mdb_entry()
910 NL_SET_ERR_MSG_MOD(extack, "IPv4 entry group address is not multicast"); in is_valid_mdb_entry()
914 NL_SET_ERR_MSG_MOD(extack, "IPv4 entry group address is local multicast"); in is_valid_mdb_entry()
920 NL_SET_ERR_MSG_MOD(extack, "IPv6 entry group address is link-local all nodes"); in is_valid_mdb_entry()
927 NL_SET_ERR_MSG_MOD(extack, "L2 entry group is not multicast"); in is_valid_mdb_entry()
931 NL_SET_ERR_MSG_MOD(extack, "Unknown entry protocol"); in is_valid_mdb_entry()
936 NL_SET_ERR_MSG_MOD(extack, "Unknown entry state"); in is_valid_mdb_entry()
940 NL_SET_ERR_MSG_MOD(extack, "Invalid entry VLAN id"); in is_valid_mdb_entry()
948 struct netlink_ext_ack *extack) in is_valid_mdb_source() argument
953 NL_SET_ERR_MSG_MOD(extack, "IPv4 invalid source address length"); in is_valid_mdb_source()
957 NL_SET_ERR_MSG_MOD(extack, "IPv4 multicast source address is not allowed"); in is_valid_mdb_source()
966 NL_SET_ERR_MSG_MOD(extack, "IPv6 invalid source address length"); in is_valid_mdb_source()
971 NL_SET_ERR_MSG_MOD(extack, "IPv6 multicast source address is not allowed"); in is_valid_mdb_source()
978 NL_SET_ERR_MSG_MOD(extack, "Invalid protocol used with source address"); in is_valid_mdb_source()
993 struct nlattr **mdb_attrs, struct netlink_ext_ack *extack) in br_mdb_parse() argument
1009 NL_SET_ERR_MSG_MOD(extack, "Invalid bridge ifindex"); in br_mdb_parse()
1015 NL_SET_ERR_MSG_MOD(extack, "Bridge device doesn't exist"); in br_mdb_parse()
1020 NL_SET_ERR_MSG_MOD(extack, "Device is not a bridge"); in br_mdb_parse()
1027 NL_SET_ERR_MSG_MOD(extack, "Missing MDBA_SET_ENTRY attribute"); in br_mdb_parse()
1031 NL_SET_ERR_MSG_MOD(extack, "Invalid MDBA_SET_ENTRY attribute length"); in br_mdb_parse()
1036 if (!is_valid_mdb_entry(entry, extack)) in br_mdb_parse()
1043 br_mdbe_attrs_pol, extack); in br_mdb_parse()
1048 entry->addr.proto, extack)) in br_mdb_parse()
1061 struct netlink_ext_ack *extack) in __br_mdb_choose_context() argument
1072 NL_SET_ERR_MSG_MOD(extack, "Cannot add an entry without a vlan when vlan snooping is enabled"); in __br_mdb_choose_context()
1078 NL_SET_ERR_MSG_MOD(extack, "Vlan is not configured"); in __br_mdb_choose_context()
1082 NL_SET_ERR_MSG_MOD(extack, "Vlan's multicast processing is disabled"); in __br_mdb_choose_context()
1093 struct netlink_ext_ack *extack) in br_mdb_add_group() argument
1107 brmctx = __br_mdb_choose_context(br, entry, extack); in br_mdb_add_group()
1115 NL_SET_ERR_MSG_MOD(extack, "Flags are not allowed for host groups"); in br_mdb_add_group()
1119 NL_SET_ERR_MSG_MOD(extack, "Groups with sources cannot be manually host joined"); in br_mdb_add_group()
1125 NL_SET_ERR_MSG_MOD(extack, "Only permanent L2 entries allowed"); in br_mdb_add_group()
1140 NL_SET_ERR_MSG_MOD(extack, "Group is already joined by host"); in br_mdb_add_group()
1154 NL_SET_ERR_MSG_MOD(extack, "Group is already joined by port"); in br_mdb_add_group()
1170 NL_SET_ERR_MSG_MOD(extack, "Couldn't allocate new port group"); in br_mdb_add_group()
1205 struct netlink_ext_ack *extack) in __br_mdb_add() argument
1210 ret = br_mdb_add_group(br, p, entry, mdb_attrs, extack); in __br_mdb_add()
1217 struct netlink_ext_ack *extack) in br_mdb_add() argument
1229 err = br_mdb_parse(skb, nlh, &dev, &entry, mdb_attrs, extack); in br_mdb_add()
1236 NL_SET_ERR_MSG_MOD(extack, "Bridge device is not running"); in br_mdb_add()
1241 NL_SET_ERR_MSG_MOD(extack, "Bridge's multicast processing is disabled"); in br_mdb_add()
1248 NL_SET_ERR_MSG_MOD(extack, "Port net device doesn't exist"); in br_mdb_add()
1254 NL_SET_ERR_MSG_MOD(extack, "Net device is not a bridge port"); in br_mdb_add()
1259 NL_SET_ERR_MSG_MOD(extack, "Port belongs to a different bridge device"); in br_mdb_add()
1263 NL_SET_ERR_MSG_MOD(extack, "Port is in disabled state"); in br_mdb_add()
1277 err = __br_mdb_add(net, br, p, entry, mdb_attrs, extack); in br_mdb_add()
1282 err = __br_mdb_add(net, br, p, entry, mdb_attrs, extack); in br_mdb_add()
1337 struct netlink_ext_ack *extack) in br_mdb_del() argument
1349 err = br_mdb_parse(skb, nlh, &dev, &entry, mdb_attrs, extack); in br_mdb_del()