• V
    net: introduce iterators over synced hw addresses · db01868b
    Vladimir Oltean 提交于
    Some network drivers use __dev_mc_sync()/__dev_uc_sync() and therefore
    program the hardware only with addresses with a non-zero sync_cnt.
    
    Some of the above drivers also need to save/restore the address
    filtering lists when certain events happen, and they need to walk
    through the struct net_device :: uc and struct net_device :: mc lists.
    But these lists contain unsynced addresses too.
    
    To keep the appearance of an elementary form of data encapsulation,
    provide iterators through these lists that only look at entries with a
    non-zero sync_cnt, instead of filtering entries out from device drivers.
    Signed-off-by: NVladimir Oltean <vladimir.oltean@nxp.com>
    Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
    Signed-off-by: NPaolo Abeni <pabeni@redhat.com>
    db01868b
netdevice.h 159.2 KB