mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 05:12:49 +00:00
net: stmmac: dwmac1000: provide multicast filter fallback
commit 592d751c1e
upstream.
If we don't have a hardware multicast filter available then instead of
silently failing to listen for the requested ethernet broadcast
addresses fall back to receiving all multicast packets, in a similar
fashion to other drivers with no multicast filter.
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan McDowell <noodles@earth.li>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
26f0092f35
commit
c334db67eb
1 changed files with 3 additions and 0 deletions
|
@ -176,6 +176,9 @@ static void dwmac1000_set_filter(struct mac_device_info *hw,
|
||||||
value = GMAC_FRAME_FILTER_PR;
|
value = GMAC_FRAME_FILTER_PR;
|
||||||
} else if (dev->flags & IFF_ALLMULTI) {
|
} else if (dev->flags & IFF_ALLMULTI) {
|
||||||
value = GMAC_FRAME_FILTER_PM; /* pass all multi */
|
value = GMAC_FRAME_FILTER_PM; /* pass all multi */
|
||||||
|
} else if (!netdev_mc_empty(dev) && (mcbitslog2 == 0)) {
|
||||||
|
/* Fall back to all multicast if we've no filter */
|
||||||
|
value = GMAC_FRAME_FILTER_PM;
|
||||||
} else if (!netdev_mc_empty(dev)) {
|
} else if (!netdev_mc_empty(dev)) {
|
||||||
struct netdev_hw_addr *ha;
|
struct netdev_hw_addr *ha;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue