]> git.baikalelectronics.ru Git - kernel.git/commit
xdp: use common helper for netlink extended ack reporting
authorDaniel Borkmann <daniel@iogearbox.net>
Tue, 2 May 2017 22:39:17 +0000 (00:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 May 2017 13:51:24 +0000 (09:51 -0400)
commitd608aefd57aaaa44aaf68d78d24854ea7e8aa132
treee0a16bcaab65f32a34cc6edaef61b34ca6e4a5ef
parent1fd52416d220f13b5c027c8e2a98013713be1c21
xdp: use common helper for netlink extended ack reporting

Small follow-up to 67399e5183e3 ("xdp: use netlink extended ACK reporting")
in order to let drivers all use the same NL_SET_ERR_MSG_MOD() helper macro
for reporting. This also ensures that we consistently add the driver's
prefix for dumping the report in user space to indicate that the error
message is driver specific and not coming from core code. Furthermore,
NL_SET_ERR_MSG_MOD() now reuses NL_SET_ERR_MSG() and thus makes all macros
check the pointer as suggested.

References: https://www.spinics.net/lists/netdev/msg433267.html
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c
drivers/net/virtio_net.c
include/linux/netlink.h