On 7/13/18 4:54 PM, Jakub Kicinski wrote: > Kernel now supports attaching XDP programs in the driver > and hardware at the same time. Print that information > correctly. > > In case there are multiple programs attached kernel will > not provide IFLA_XDP_PROG_ID, so don't expect it to be > there (this also improves the printing for very old kernels > slightly, as it avoids unnecessary "prog/xdp" line). > ...
> > Signed-off-by: Jakub Kicinski <jakub.kicin...@netronome.com> > Reviewed-by: Quentin Monnet <quentin.mon...@netronome.com> > --- > v2: > - const char * for constant string; > - add more compat for older kernels. > --- > ip/iplink_xdp.c | 73 +++++++++++++++++++++++++++++++++++++++++-------- > 1 file changed, 61 insertions(+), 12 deletions(-) > applied to iproute2-next. Thanks