Lines Matching refs:extack
384 struct netlink_ext_ack *extack) in br_mdb_valid_dump_req() argument
389 NL_SET_ERR_MSG_MOD(extack, "Invalid header for mdb dump request"); in br_mdb_valid_dump_req()
395 NL_SET_ERR_MSG_MOD(extack, "Filtering by device index is not supported for mdb dump request"); in br_mdb_valid_dump_req()
399 NL_SET_ERR_MSG(extack, "Invalid data after header in mdb dump request"); in br_mdb_valid_dump_req()
414 int err = br_mdb_valid_dump_req(cb->nlh, cb->extack); in br_mdb_dump()
667 struct netlink_ext_ack *extack) in is_valid_mdb_entry() argument
670 NL_SET_ERR_MSG_MOD(extack, "Zero entry ifindex is not allowed"); in is_valid_mdb_entry()
676 NL_SET_ERR_MSG_MOD(extack, "IPv4 entry group address is not multicast"); in is_valid_mdb_entry()
680 NL_SET_ERR_MSG_MOD(extack, "IPv4 entry group address is local multicast"); in is_valid_mdb_entry()
686 NL_SET_ERR_MSG_MOD(extack, "IPv6 entry group address is link-local all nodes"); in is_valid_mdb_entry()
693 NL_SET_ERR_MSG_MOD(extack, "L2 entry group is not multicast"); in is_valid_mdb_entry()
697 NL_SET_ERR_MSG_MOD(extack, "Unknown entry protocol"); in is_valid_mdb_entry()
702 NL_SET_ERR_MSG_MOD(extack, "Unknown entry state"); in is_valid_mdb_entry()
706 NL_SET_ERR_MSG_MOD(extack, "Invalid entry VLAN id"); in is_valid_mdb_entry()
714 struct netlink_ext_ack *extack) in is_valid_mdb_source() argument
719 NL_SET_ERR_MSG_MOD(extack, "IPv4 invalid source address length"); in is_valid_mdb_source()
723 NL_SET_ERR_MSG_MOD(extack, "IPv4 multicast source address is not allowed"); in is_valid_mdb_source()
732 NL_SET_ERR_MSG_MOD(extack, "IPv6 invalid source address length"); in is_valid_mdb_source()
737 NL_SET_ERR_MSG_MOD(extack, "IPv6 multicast source address is not allowed"); in is_valid_mdb_source()
744 NL_SET_ERR_MSG_MOD(extack, "Invalid protocol used with source address"); in is_valid_mdb_source()
759 struct nlattr **mdb_attrs, struct netlink_ext_ack *extack) in br_mdb_parse() argument
775 NL_SET_ERR_MSG_MOD(extack, "Invalid bridge ifindex"); in br_mdb_parse()
781 NL_SET_ERR_MSG_MOD(extack, "Bridge device doesn't exist"); in br_mdb_parse()
786 NL_SET_ERR_MSG_MOD(extack, "Device is not a bridge"); in br_mdb_parse()
793 NL_SET_ERR_MSG_MOD(extack, "Missing MDBA_SET_ENTRY attribute"); in br_mdb_parse()
797 NL_SET_ERR_MSG_MOD(extack, "Invalid MDBA_SET_ENTRY attribute length"); in br_mdb_parse()
802 if (!is_valid_mdb_entry(entry, extack)) in br_mdb_parse()
809 br_mdbe_attrs_pol, extack); in br_mdb_parse()
814 entry->addr.proto, extack)) in br_mdb_parse()
827 struct netlink_ext_ack *extack) in __br_mdb_choose_context() argument
838 NL_SET_ERR_MSG_MOD(extack, "Cannot add an entry without a vlan when vlan snooping is enabled"); in __br_mdb_choose_context()
844 NL_SET_ERR_MSG_MOD(extack, "Vlan is not configured"); in __br_mdb_choose_context()
848 NL_SET_ERR_MSG_MOD(extack, "Vlan's multicast processing is disabled"); in __br_mdb_choose_context()
859 struct netlink_ext_ack *extack) in br_mdb_add_group() argument
873 brmctx = __br_mdb_choose_context(br, entry, extack); in br_mdb_add_group()
881 NL_SET_ERR_MSG_MOD(extack, "Flags are not allowed for host groups"); in br_mdb_add_group()
885 NL_SET_ERR_MSG_MOD(extack, "Groups with sources cannot be manually host joined"); in br_mdb_add_group()
891 NL_SET_ERR_MSG_MOD(extack, "Only permanent L2 entries allowed"); in br_mdb_add_group()
906 NL_SET_ERR_MSG_MOD(extack, "Group is already joined by host"); in br_mdb_add_group()
920 NL_SET_ERR_MSG_MOD(extack, "Group is already joined by port"); in br_mdb_add_group()
936 NL_SET_ERR_MSG_MOD(extack, "Couldn't allocate new port group"); in br_mdb_add_group()
971 struct netlink_ext_ack *extack) in __br_mdb_add() argument
976 ret = br_mdb_add_group(br, p, entry, mdb_attrs, extack); in __br_mdb_add()
983 struct netlink_ext_ack *extack) in br_mdb_add() argument
995 err = br_mdb_parse(skb, nlh, &dev, &entry, mdb_attrs, extack); in br_mdb_add()
1002 NL_SET_ERR_MSG_MOD(extack, "Bridge device is not running"); in br_mdb_add()
1007 NL_SET_ERR_MSG_MOD(extack, "Bridge's multicast processing is disabled"); in br_mdb_add()
1014 NL_SET_ERR_MSG_MOD(extack, "Port net device doesn't exist"); in br_mdb_add()
1020 NL_SET_ERR_MSG_MOD(extack, "Net device is not a bridge port"); in br_mdb_add()
1025 NL_SET_ERR_MSG_MOD(extack, "Port belongs to a different bridge device"); in br_mdb_add()
1029 NL_SET_ERR_MSG_MOD(extack, "Port is in disabled state and entry is not permanent"); in br_mdb_add()
1043 err = __br_mdb_add(net, br, p, entry, mdb_attrs, extack); in br_mdb_add()
1048 err = __br_mdb_add(net, br, p, entry, mdb_attrs, extack); in br_mdb_add()
1100 struct netlink_ext_ack *extack) in br_mdb_del() argument
1112 err = br_mdb_parse(skb, nlh, &dev, &entry, mdb_attrs, extack); in br_mdb_del()
1125 NL_SET_ERR_MSG_MOD(extack, "Net device is not a bridge port"); in br_mdb_del()
1129 NL_SET_ERR_MSG_MOD(extack, "Port belongs to a different bridge device"); in br_mdb_del()