spacepaste

  1.  
  2. diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
  3. index 9eb7f65d8000..c9775f3eb1f4 100644
  4. --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
  5. +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
  6. @@ -567,6 +567,7 @@ static void sun8i_dwmac_set_filter(struct mac_device_info *hw,
  7. int macaddrs = netdev_uc_count(dev) + netdev_mc_count(dev) + 1;
  8. v = EMAC_FRM_FLT_CTL;
  9. + netdev_info(dev, "DEBUG: %d %d\n", macaddrs, hw->unicast_filter_entries);
  10. if (dev->flags & IFF_PROMISC) {
  11. v = EMAC_FRM_FLT_RXALL;
  12. @@ -575,12 +576,14 @@ static void sun8i_dwmac_set_filter(struct mac_device_info *hw,
  13. } else if (macaddrs <= hw->unicast_filter_entries) {
  14. if (!netdev_mc_empty(dev)) {
  15. netdev_for_each_mc_addr(ha, dev) {
  16. + netdev_info(dev, "DEBUG: Add mc %d %pM\n", i, ha->addr);
  17. sun8i_dwmac_set_umac_addr(hw, ha->addr, i);
  18. i++;
  19. }
  20. }
  21. if (!netdev_uc_empty(dev)) {
  22. netdev_for_each_uc_addr(ha, dev) {
  23. + netdev_info(dev, "DEBUG: Add uc %d %pM\n", i, ha->addr);
  24. sun8i_dwmac_set_umac_addr(hw, ha->addr, i);
  25. i++;
  26. }
  27.