[dpdk-dev] [PATCH] vhost: fix build error on old kernel doesn't support MQ

2015-10-30 Thread Thomas Monjalon
2015-10-30 15:40, David Marchand: > On Thu, Oct 29, 2015 at 4:37 AM, Yuanhan Liu > wrote: > > > Fix build error: > > > > virtio-net.c:80:89: error: ?VIRTIO_NET_F_MQ? undeclared here > > rte_virtio_net.h:109: error: ?VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MAX? > > undeclared here > > > > Above two virtio

[dpdk-dev] [PATCH] vhost: fix build error on old kernel doesn't support MQ

2015-10-30 Thread David Marchand
On Thu, Oct 29, 2015 at 4:37 AM, Yuanhan Liu wrote: > Fix build error: > > virtio-net.c:80:89: error: ?VIRTIO_NET_F_MQ? undeclared here > rte_virtio_net.h:109: error: ?VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MAX? > undeclared here > > Above two virtio-net MQ macros are introduced since kernel v3.8. > For

[dpdk-dev] [PATCH] vhost: fix build error on old kernel doesn't support MQ

2015-10-29 Thread Yuanhan Liu
Fix build error: virtio-net.c:80:89: error: ?VIRTIO_NET_F_MQ? undeclared here rte_virtio_net.h:109: error: ?VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MAX? undeclared here Above two virtio-net MQ macros are introduced since kernel v3.8. For older kernel, we should not reference them directly, hence, this pa