kni: fix multicast ioctl handling
authorSimon Kagstrom <simon.kagstrom@netinsight.net>
Tue, 2 Jun 2015 07:21:55 +0000 (09:21 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 16 Jun 2015 15:28:16 +0000 (17:28 +0200)
commit3c8aa16a89c52728e9110a8dfb9fa58588e9532d
treeb6506a056ebf58b111503846d64669ba10be44b8
parentc1c016a3fce721a45a31fedcc65da89a70a19268
kni: fix multicast ioctl handling

We did some (very basic) tests with IGMP, which involves adding
multicast addresses to ETH interfaces. This is done via the ip tool,
an example can be found on e.g.,

  http://superuser.com/questions/324824/linux-built-in-or-open-source-program-to-join-multicast-group

and this will fail on KNI interfaces because of an unimplemented ioctl
SIOCADDMULTI. The patch simply adds an empty callback for set_rx_mode
(typically used for setting up hardware) so that the ioctl succeeds.
This is the same thing as the Linux tap interface does.

Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
Signed-off-by: Johan Faltstrom <johan.faltstrom@netinsight.net>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Helin Zhang <helin.zhang@intel.com>
lib/librte_eal/linuxapp/kni/kni_net.c