701-net-0249-net-mscc-ocelot-initialize-list-of-multicast-address.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From 0a7e5a60bdd559d092912adb34bc99c6457d3fb6 Mon Sep 17 00:00:00 2001
  2. From: Claudiu Manoil <[email protected]>
  3. Date: Sat, 9 Nov 2019 15:02:58 +0200
  4. Subject: [PATCH] net: mscc: ocelot: initialize list of multicast addresses in
  5. common code
  6. This is just common path code that belongs to ocelot_init,
  7. it has nothing to do with a specific SoC/board instance.
  8. Signed-off-by: Claudiu Manoil <[email protected]>
  9. Signed-off-by: Vladimir Oltean <[email protected]>
  10. Signed-off-by: David S. Miller <[email protected]>
  11. ---
  12. drivers/net/ethernet/mscc/ocelot.c | 1 +
  13. drivers/net/ethernet/mscc/ocelot_board.c | 1 -
  14. 2 files changed, 1 insertion(+), 1 deletion(-)
  15. --- a/drivers/net/ethernet/mscc/ocelot.c
  16. +++ b/drivers/net/ethernet/mscc/ocelot.c
  17. @@ -2245,6 +2245,7 @@ int ocelot_init(struct ocelot *ocelot)
  18. if (!ocelot->stats_queue)
  19. return -ENOMEM;
  20. + INIT_LIST_HEAD(&ocelot->multicast);
  21. ocelot_mact_init(ocelot);
  22. ocelot_vlan_init(ocelot);
  23. ocelot_ace_init(ocelot);
  24. --- a/drivers/net/ethernet/mscc/ocelot_board.c
  25. +++ b/drivers/net/ethernet/mscc/ocelot_board.c
  26. @@ -372,7 +372,6 @@ static int mscc_ocelot_probe(struct plat
  27. ocelot->ports = devm_kcalloc(&pdev->dev, ocelot->num_phys_ports,
  28. sizeof(struct ocelot_port *), GFP_KERNEL);
  29. - INIT_LIST_HEAD(&ocelot->multicast);
  30. ocelot_init(ocelot);
  31. for_each_available_child_of_node(ports, portnp) {