virtio_net: Add a set_rx_mode interface
authorAlex Williamson <alex.williamson@hp.com>
Wed, 4 Feb 2009 09:02:40 +0000 (09:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Feb 2009 00:35:12 +0000 (16:35 -0800)
commit2af7698e2dd698d452ab9d63a9ca5956bbe8fc3b
treeb4f767eb2b15d85b0f4ebe1cd560b296f44cc8a1
parent2a41f71d3bd97dde3305b4e1c43ab0eca46e7c71
virtio_net: Add a set_rx_mode interface

Make use of the RX_MODE control virtqueue class to enable the
set_rx_mode netdev interface.  This allows us to selectively
enable/disable promiscuous and allmulti mode so we don't see
packets we don't want.  For now, we automatically enable these
as needed if additional unicast or multicast addresses are
requested.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c
include/linux/virtio_net.h