• Patrick McHardy's avatar
    [NET]: dev_mcast: add multicast list synchronization helpers · a0a400d7
    Patrick McHardy authored
    The method drivers currently use to synchronize multicast lists is not
    very pretty:
    
    - walk the multicast list
    - search each entry on a copy of the previous list
    - if new add to lower device
    - walk the copy of the previous list
    - search each entry on the current list
    - if removed delete from lower device
    - copy entire list
    
    This patch adds a new field to struct dev_addr_list to store the
    synchronization state and adds two helper functions for synchronization
    and cleanup.
    Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    a0a400d7
dev_mcast.c 6.28 KB