X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fvirtio%2Fvirtio_user%2Fvhost_kernel_tap.c;h=f585de8c33a91d8f732dd85b81bc3dc87375b623;hb=be7a4707f7872e08a4c9e4ab80a2cd23c3930cc5;hp=cdb5c3c180b1db1451502e51f0aee2ddb290f657;hpb=5e97e42025635e03ff5c256275d7d7650fff4dbc;p=dpdk.git diff --git a/drivers/net/virtio/virtio_user/vhost_kernel_tap.c b/drivers/net/virtio/virtio_user/vhost_kernel_tap.c index cdb5c3c180..f585de8c33 100644 --- a/drivers/net/virtio/virtio_user/vhost_kernel_tap.c +++ b/drivers/net/virtio/virtio_user/vhost_kernel_tap.c @@ -44,7 +44,7 @@ #include "../virtio_logs.h" int -vhost_kernel_open_tap(char **p_ifname, int hdr_size) +vhost_kernel_open_tap(char **p_ifname, int hdr_size, int req_mq) { unsigned int tap_features; int sndbuf = INT_MAX; @@ -91,6 +91,9 @@ vhost_kernel_open_tap(char **p_ifname, int hdr_size) goto error; } + if (req_mq) + ifr.ifr_flags |= IFF_MULTI_QUEUE; + if (*p_ifname) strncpy(ifr.ifr_name, *p_ifname, IFNAMSIZ); else