• Igor Russkikh's avatar
    net: aquantia: vlan unicast address list correct handling · 94b3b542
    Igor Russkikh authored
    Setting up macvlan/macvtap networks over atlantic NIC results
    in no traffic over these networks because ndo_set_rx_mode did
    not listed UC MACs as registered in unicast filter.
    
    Here we fix that taking into account maximum number of UC
    filters supported by hardware. If more than MAX addresses were
    registered, we just enable promisc  and/or allmulti to pass
    the traffic in.
    
    We also remove MULTICAST_ADDRESS_MAX constant from aq_cfg since
    thats not a configurable parameter at all.
    
    Fixes: b21f502f ("net:ethernet:aquantia: Fix for multicast filter handling.")
    Signed-off-by: default avatarIgor Russkikh <igor.russkikh@aquantia.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    94b3b542
aq_nic.c 23.2 KB