On Fri, 28 Apr 2017 15:44:29 +0200 Daniel Borkmann <dan...@iogearbox.net> wrote:
> diff --git a/ip/iplink.c b/ip/iplink.c > index 866ad72..96b0da3 100644 > --- a/ip/iplink.c > +++ b/ip/iplink.c > @@ -606,9 +606,12 @@ int iplink_parse(int argc, char **argv, struct > iplink_req *req, > if (get_integer(&mtu, *argv, 0)) > invarg("Invalid \"mtu\" value\n", *argv); > addattr_l(&req->n, sizeof(*req), IFLA_MTU, &mtu, 4); > - } else if (strcmp(*argv, "xdp") == 0) { > + } else if (strcmp(*argv, "xdpgeneric") == 0 || > + strcmp(*argv, "xdp") == 0) { > + bool generic = strcmp(*argv, "xdpgeneric") == 0; > + > NEXT_ARG(); > - if (xdp_parse(&argc, &argv, req)) > + if (xdp_parse(&argc, &argv, req, generic)) > exit(-1); > } else if (strcmp(*argv, "netns") == 0) { On a slightly related note, there really ought to be bash completion scripts for ip command. There is a slightly out of date one for tc already.