Skip to content
  • Shahed Shaikh's avatar
    qlcnic: Delete existing multicast MAC list before adding new · fe79fabb
    Shahed Shaikh authored
    
    
    Driver keeps adding multicast addresses without deleting removed MACs and
    worrying about adapters filter limit. This results into actual count of programmed
    multicast addresses get accumulated over the time and overruns the adapter's
    filter limit without putting device in ACCEPT_ALL_MULTI mode. This causes
    newly added multicast traffic to fail after the sequence of addition - deletion
    in certain pattern.
    
    This issue is seen only when netdev's mcast list count is less than adapters
    mcast filter limit.
    
    e.g. If adapters multicast filter limit is 38 per function
         then following sequence would result in multicast traffic failure for
         newly added MACs.
         - add less than 38 multicast MACs
         - remove previously added multicast MACs
         - add new multicast MACs (less than 38)
    
    Signed-off-by: default avatarShahed Shaikh <shahed.shaikh@qlogic.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    fe79fabb