diff options
-rw-r--r-- | include/linux/netdevice.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 622ba5aa93c4..e535700a3b72 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -268,6 +268,12 @@ struct netdev_hw_addr_list { | |||
268 | #define netdev_for_each_uc_addr(ha, dev) \ | 268 | #define netdev_for_each_uc_addr(ha, dev) \ |
269 | list_for_each_entry(ha, &dev->uc.list, list) | 269 | list_for_each_entry(ha, &dev->uc.list, list) |
270 | 270 | ||
271 | #define netdev_mc_count(dev) ((dev)->mc_count) | ||
272 | #define netdev_mc_empty(dev) (netdev_mc_count(dev) == 0) | ||
273 | |||
274 | #define netdev_for_each_mc_addr(mclist, dev) \ | ||
275 | for (mclist = dev->mc_list; mclist; mclist = mclist->next) | ||
276 | |||
271 | struct hh_cache { | 277 | struct hh_cache { |
272 | struct hh_cache *hh_next; /* Next entry */ | 278 | struct hh_cache *hh_next; /* Next entry */ |
273 | atomic_t hh_refcnt; /* number of users */ | 279 | atomic_t hh_refcnt; /* number of users */ |