diff options
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 25f87102ab66..56dadb528f67 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -599,8 +599,8 @@ struct net_device | |||
599 | int uc_promisc; | 599 | int uc_promisc; |
600 | struct dev_addr_list *mc_list; /* Multicast mac addresses */ | 600 | struct dev_addr_list *mc_list; /* Multicast mac addresses */ |
601 | int mc_count; /* Number of installed mcasts */ | 601 | int mc_count; /* Number of installed mcasts */ |
602 | int promiscuity; | 602 | unsigned int promiscuity; |
603 | int allmulti; | 603 | unsigned int allmulti; |
604 | 604 | ||
605 | 605 | ||
606 | /* Protocol specific pointers */ | 606 | /* Protocol specific pointers */ |
@@ -890,6 +890,7 @@ extern struct net_device *__dev_get_by_name(struct net *net, const char *name); | |||
890 | extern int dev_alloc_name(struct net_device *dev, const char *name); | 890 | extern int dev_alloc_name(struct net_device *dev, const char *name); |
891 | extern int dev_open(struct net_device *dev); | 891 | extern int dev_open(struct net_device *dev); |
892 | extern int dev_close(struct net_device *dev); | 892 | extern int dev_close(struct net_device *dev); |
893 | extern void dev_disable_lro(struct net_device *dev); | ||
893 | extern int dev_queue_xmit(struct sk_buff *skb); | 894 | extern int dev_queue_xmit(struct sk_buff *skb); |
894 | extern int register_netdevice(struct net_device *dev); | 895 | extern int register_netdevice(struct net_device *dev); |
895 | extern void unregister_netdevice(struct net_device *dev); | 896 | extern void unregister_netdevice(struct net_device *dev); |
@@ -1480,9 +1481,10 @@ extern int __dev_addr_delete(struct dev_addr_list **list, int *count, void *ad | |||
1480 | extern int __dev_addr_add(struct dev_addr_list **list, int *count, void *addr, int alen, int newonly); | 1481 | extern int __dev_addr_add(struct dev_addr_list **list, int *count, void *addr, int alen, int newonly); |
1481 | extern int __dev_addr_sync(struct dev_addr_list **to, int *to_count, struct dev_addr_list **from, int *from_count); | 1482 | extern int __dev_addr_sync(struct dev_addr_list **to, int *to_count, struct dev_addr_list **from, int *from_count); |
1482 | extern void __dev_addr_unsync(struct dev_addr_list **to, int *to_count, struct dev_addr_list **from, int *from_count); | 1483 | extern void __dev_addr_unsync(struct dev_addr_list **to, int *to_count, struct dev_addr_list **from, int *from_count); |
1483 | extern void dev_set_promiscuity(struct net_device *dev, int inc); | 1484 | extern int dev_set_promiscuity(struct net_device *dev, int inc); |
1484 | extern void dev_set_allmulti(struct net_device *dev, int inc); | 1485 | extern int dev_set_allmulti(struct net_device *dev, int inc); |
1485 | extern void netdev_state_change(struct net_device *dev); | 1486 | extern void netdev_state_change(struct net_device *dev); |
1487 | extern void netdev_bonding_change(struct net_device *dev); | ||
1486 | extern void netdev_features_change(struct net_device *dev); | 1488 | extern void netdev_features_change(struct net_device *dev); |
1487 | /* Load a device via the kmod */ | 1489 | /* Load a device via the kmod */ |
1488 | extern void dev_load(struct net *net, const char *name); | 1490 | extern void dev_load(struct net *net, const char *name); |
@@ -1509,6 +1511,9 @@ extern void *dev_seq_next(struct seq_file *seq, void *v, loff_t *pos); | |||
1509 | extern void dev_seq_stop(struct seq_file *seq, void *v); | 1511 | extern void dev_seq_stop(struct seq_file *seq, void *v); |
1510 | #endif | 1512 | #endif |
1511 | 1513 | ||
1514 | extern int netdev_class_create_file(struct class_attribute *class_attr); | ||
1515 | extern void netdev_class_remove_file(struct class_attribute *class_attr); | ||
1516 | |||
1512 | extern void linkwatch_run_queue(void); | 1517 | extern void linkwatch_run_queue(void); |
1513 | 1518 | ||
1514 | extern int netdev_compute_features(unsigned long all, unsigned long one); | 1519 | extern int netdev_compute_features(unsigned long all, unsigned long one); |