Lines Matching refs:extack
298 struct netlink_ext_ack *extack) in br_mdb_valid_dump_req() argument
303 NL_SET_ERR_MSG_MOD(extack, "Invalid header for mdb dump request"); in br_mdb_valid_dump_req()
309 NL_SET_ERR_MSG_MOD(extack, "Filtering by device index is not supported for mdb dump request"); in br_mdb_valid_dump_req()
313 NL_SET_ERR_MSG(extack, "Invalid data after header in mdb dump request"); in br_mdb_valid_dump_req()
328 int err = br_mdb_valid_dump_req(cb->nlh, cb->extack); in br_mdb_dump()
673 struct netlink_ext_ack *extack) in is_valid_mdb_entry() argument
676 NL_SET_ERR_MSG_MOD(extack, "Zero entry ifindex is not allowed"); in is_valid_mdb_entry()
682 NL_SET_ERR_MSG_MOD(extack, "IPv4 entry group address is not multicast"); in is_valid_mdb_entry()
686 NL_SET_ERR_MSG_MOD(extack, "IPv4 entry group address is local multicast"); in is_valid_mdb_entry()
692 NL_SET_ERR_MSG_MOD(extack, "IPv6 entry group address is link-local all nodes"); 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_add_group() argument
843 NL_SET_ERR_MSG_MOD(extack, "Flags are not allowed for host groups"); in br_mdb_add_group()
847 NL_SET_ERR_MSG_MOD(extack, "Groups with sources cannot be manually host joined"); in br_mdb_add_group()
863 NL_SET_ERR_MSG_MOD(extack, "Group is already joined by host"); in br_mdb_add_group()
877 NL_SET_ERR_MSG_MOD(extack, "Group is already joined by port"); in br_mdb_add_group()
890 NL_SET_ERR_MSG_MOD(extack, "Couldn't allocate new port group"); in br_mdb_add_group()
924 struct netlink_ext_ack *extack) in __br_mdb_add() argument
929 ret = br_mdb_add_group(br, p, entry, mdb_attrs, extack); in __br_mdb_add()
936 struct netlink_ext_ack *extack) in br_mdb_add() argument
948 err = br_mdb_parse(skb, nlh, &dev, &entry, mdb_attrs, extack); in br_mdb_add()
955 NL_SET_ERR_MSG_MOD(extack, "Bridge device is not running"); in br_mdb_add()
960 NL_SET_ERR_MSG_MOD(extack, "Bridge's multicast processing is disabled"); in br_mdb_add()
967 NL_SET_ERR_MSG_MOD(extack, "Port net device doesn't exist"); in br_mdb_add()
973 NL_SET_ERR_MSG_MOD(extack, "Net device is not a bridge port"); in br_mdb_add()
978 NL_SET_ERR_MSG_MOD(extack, "Port belongs to a different bridge device"); in br_mdb_add()
982 NL_SET_ERR_MSG_MOD(extack, "Port is in disabled state"); in br_mdb_add()
996 err = __br_mdb_add(net, br, p, entry, mdb_attrs, extack); in br_mdb_add()
1001 err = __br_mdb_add(net, br, p, entry, mdb_attrs, extack); in br_mdb_add()
1056 struct netlink_ext_ack *extack) in br_mdb_del() argument
1068 err = br_mdb_parse(skb, nlh, &dev, &entry, mdb_attrs, extack); in br_mdb_del()