xdp: propagate extended ack to XDP setup
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 1 May 2017 04:46:46 +0000 (21:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 May 2017 14:35:47 +0000 (10:35 -0400)
commitddf9f970764f4390aba767e77fddaaced4a6760d
treedf2bda9d14a042405d75ee93c9fb11e8991d6cac
parent45d9b378e85f1b00ac047626827c68589168936c
xdp: propagate extended ack to XDP setup

Drivers usually have a number of restrictions for running XDP
- most common being buffer sizes, LRO and number of rings.
Even though some drivers try to be helpful and print error
messages experience shows that users don't often consult
kernel logs on netlink errors.  Try to use the new extended
ack mechanism to carry the message back to user space.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c
net/core/rtnetlink.c