]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
net: ll_temac: Enable multicast support
authorEsben Haabendal <esben@geanix.com>
Thu, 23 May 2019 12:02:22 +0000 (14:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 May 2019 16:33:57 +0000 (09:33 -0700)
Multicast support have been tested and is working now.

Signed-off-by: Esben Haabendal <esben@geanix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/ll_temac_main.c

index ef13fa904ee41c4fb7430b0e25d83f31e0a9f137..22a52b8848212fb8ad92f5dbdec760c0cec9475d 100644 (file)
@@ -22,7 +22,6 @@
  *
  * TODO:
  * - Factor out locallink DMA code into separate driver
- * - Fix multicast assignment.
  * - Fix support for hardware checksumming.
  * - Testing.  Lots and lots of testing.
  *
@@ -1097,6 +1096,7 @@ static const struct net_device_ops temac_netdev_ops = {
        .ndo_open = temac_open,
        .ndo_stop = temac_stop,
        .ndo_start_xmit = temac_start_xmit,
+       .ndo_set_rx_mode = temac_set_multicast_list,
        .ndo_set_mac_address = temac_set_mac_address,
        .ndo_validate_addr = eth_validate_addr,
        .ndo_do_ioctl = temac_ioctl,
@@ -1162,7 +1162,6 @@ static int temac_probe(struct platform_device *pdev)
 
        platform_set_drvdata(pdev, ndev);
        SET_NETDEV_DEV(ndev, &pdev->dev);
-       ndev->flags &= ~IFF_MULTICAST;  /* clear multicast */
        ndev->features = NETIF_F_SG;
        ndev->netdev_ops = &temac_netdev_ops;
        ndev->ethtool_ops = &temac_ethtool_ops;