netlink: extended ACK reporting
Add the base infrastructure and UAPI for netlink extended ACK reporting. All "manual" calls to netlink_ack() pass NULL for now and thus don't get extended ACK reporting. Big thanks goes to Pablo Neira Ayuso for not only bringing up the whole topic at netconf (again) but also coming up with the nlattr passing trick and various other ideas. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Reviewed-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
fb9eb899a6
commit
2d4bc93368
@@ -350,7 +350,7 @@ static int hsr_get_node_status(struct sk_buff *skb_in, struct genl_info *info)
|
||||
return 0;
|
||||
|
||||
invalid:
|
||||
netlink_ack(skb_in, nlmsg_hdr(skb_in), -EINVAL);
|
||||
netlink_ack(skb_in, nlmsg_hdr(skb_in), -EINVAL, NULL);
|
||||
return 0;
|
||||
|
||||
nla_put_failure:
|
||||
@@ -432,7 +432,7 @@ static int hsr_get_node_list(struct sk_buff *skb_in, struct genl_info *info)
|
||||
return 0;
|
||||
|
||||
invalid:
|
||||
netlink_ack(skb_in, nlmsg_hdr(skb_in), -EINVAL);
|
||||
netlink_ack(skb_in, nlmsg_hdr(skb_in), -EINVAL, NULL);
|
||||
return 0;
|
||||
|
||||
nla_put_failure:
|
||||
|
Reference in New Issue
Block a user