vhost: enable promiscuous and multicast
authorOuyang Changchun <changchun.ouyang@intel.com>
Sat, 8 Nov 2014 04:26:16 +0000 (12:26 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 11 Nov 2014 23:10:23 +0000 (00:10 +0100)
commit90924caf0831906ceac6b450048fd822659e22d3
treea276033cafa2619415d4197e20b6df3904f6c01c
parentcd91b7348da958419e3eecb3aafc3cb6141fff9d
vhost: enable promiscuous and multicast

This is to enable user space vhost receiving and forwarding broadcast
and multicast packets:
Use new option in command line to enable promisc mode;
Enable 2 bits in VMDQ RX mode: ETH_VMDQ_ACCEPT_BROADCAST and ETH_VMDQ_ACCEPT_MULTICAST.

Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com>
examples/vhost/main.c
lib/librte_vhost/virtio-net.c