hv_netvsc: fix filter flags

The recent change to not always enable all multicast and broadcast
was broken; meant to set filter, not change flags.

Fixes: 009f766ca2 ("hv_netvsc: filter multicast/broadcast")
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Stephen Hemminger 2018-03-07 13:49:09 -08:00 committed by David S. Miller
parent 652dfb2b31
commit de3d50aadd
1 changed files with 2 additions and 2 deletions

View File

@ -861,9 +861,9 @@ static void rndis_set_multicast(struct work_struct *w)
filter = NDIS_PACKET_TYPE_PROMISCUOUS; filter = NDIS_PACKET_TYPE_PROMISCUOUS;
} else { } else {
if (flags & IFF_ALLMULTI) if (flags & IFF_ALLMULTI)
flags |= NDIS_PACKET_TYPE_ALL_MULTICAST; filter |= NDIS_PACKET_TYPE_ALL_MULTICAST;
if (flags & IFF_BROADCAST) if (flags & IFF_BROADCAST)
flags |= NDIS_PACKET_TYPE_BROADCAST; filter |= NDIS_PACKET_TYPE_BROADCAST;
} }
rndis_filter_set_packet_filter(rdev, filter); rndis_filter_set_packet_filter(rdev, filter);