Home
last modified time | relevance | path

Searched refs:bad_attr (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/tools/net/ynl/lib/
Dynl.c145 char bad_attr[sizeof(ys->err.msg)]; in ynl_ext_ack_check() local
182 bad_attr[0] = '\0'; in ynl_ext_ack_check()
191 n = snprintf(bad_attr, sizeof(bad_attr), "%sbad attribute: ", in ynl_ext_ack_check()
202 &bad_attr[n], sizeof(bad_attr) - n, NULL); in ynl_ext_ack_check()
204 if (n >= sizeof(bad_attr)) in ynl_ext_ack_check()
205 n = sizeof(bad_attr) - 1; in ynl_ext_ack_check()
206 bad_attr[n] = '\0'; in ynl_ext_ack_check()
217 bad_attr[0] ? ", " : (str ? " (" : "")); in ynl_ext_ack_check()
247 str, bad_attr, miss_attr, in ynl_ext_ack_check()
248 bad_attr[0] || miss_attr[0] ? ")" : ""); in ynl_ext_ack_check()
[all …]
/linux-6.12.1/include/linux/
Dnetlink.h83 const struct nlattr *bad_attr; member
144 (extack)->bad_attr = (attr); \
159 __extack->bad_attr = (attr); \
179 __extack->bad_attr = (attr); \
/linux-6.12.1/drivers/net/bonding/
Dbond_options.c671 struct nlattr *bad_attr, in bond_opt_dep_print() argument
682 NL_SET_ERR_MSG_ATTR(extack, bad_attr, in bond_opt_dep_print()
690 struct nlattr *bad_attr, in bond_opt_error_interpret() argument
698 NL_SET_ERR_MSG_ATTR(extack, bad_attr, "invalid option value"); in bond_opt_error_interpret()
720 bond_opt_dep_print(bond, opt, bad_attr, extack); in bond_opt_error_interpret()
723 NL_SET_ERR_MSG_ATTR(extack, bad_attr, in bond_opt_error_interpret()
729 NL_SET_ERR_MSG_ATTR(extack, bad_attr, in bond_opt_error_interpret()
741 NL_SET_ERR_MSG_ATTR(extack, bad_attr, in bond_opt_error_interpret()
765 struct nlattr *bad_attr, struct netlink_ext_ack *extack) in __bond_opt_set() argument
787 bond_opt_error_interpret(bond, opt, ret, val, bad_attr, extack); in __bond_opt_set()
/linux-6.12.1/include/net/
Dbond_options.h124 struct nlattr *bad_attr, struct netlink_ext_ack *extack);
/linux-6.12.1/net/netlink/
Daf_netlink.c2167 if (extack->bad_attr) in netlink_ack_tlv_len()
2193 if (extack->bad_attr && in netlink_ack_tlv_fill()
2194 !WARN_ON((u8 *)extack->bad_attr < in_skb->data || in netlink_ack_tlv_fill()
2195 (u8 *)extack->bad_attr >= in_skb->data + in_skb->len)) in netlink_ack_tlv_fill()
2197 (u8 *)extack->bad_attr - (const u8 *)nlh)); in netlink_ack_tlv_fill()