Advertisement
Guest User

Untitled

a guest
Sep 11th, 2018
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
  2. index f9a61f90cfbc..377af6cfe93f 100644
  3. --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
  4. +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
  5. @@ -646,6 +646,18 @@ static void sun8i_dwmac_set_filter(struct mac_device_info *hw,
  6. }
  7. }
  8. } else {
  9. + if (!netdev_mc_empty(dev)) {
  10. + netdev_for_each_mc_addr(ha, dev) {
  11. + pr_info("Slot %d %pM\n", i, ha->addr);
  12. + i++;
  13. + }
  14. + }
  15. + if (!netdev_uc_empty(dev)) {
  16. + netdev_for_each_uc_addr(ha, dev) {
  17. + pr_info("Slot %d %pM\n", i, ha->addr);
  18. + i++;
  19. + }
  20. + }
  21. netdev_info(dev, "Too many address, switching to promiscuous\n");
  22. v = EMAC_FRM_FLT_RXALL;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement