net: arc_emac: don't pass multicast packets to kernel in non-multicast mode
authorAlexander Kochetkov <al.kochet@gmail.com>
Mon, 14 Nov 2016 13:32:53 +0000 (16:32 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2016 00:58:13 +0000 (19:58 -0500)
commitd0e3f65b34c528ec2b7d1ba9a620b483f71788d3
tree87af8020e550b82ebb8ec85dab07fe10c07912b8
parentc7a4e3d8c0d43a4f31f8b2ccf476e5a26eb85142
net: arc_emac: don't pass multicast packets to kernel in non-multicast mode

The patch disable capturing multicast packets when multicast mode
disabled for ethernet ('ifconfig eth0 -multicast'). In that case
no multicast packet will be passed to kernel.

Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/arc/emac_main.c