aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h13
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);
890extern int dev_alloc_name(struct net_device *dev, const char *name); 890extern int dev_alloc_name(struct net_device *dev, const char *name);
891extern int dev_open(struct net_device *dev); 891extern int dev_open(struct net_device *dev);
892extern int dev_close(struct net_device *dev); 892extern int dev_close(struct net_device *dev);
893extern void dev_disable_lro(struct net_device *dev);
893extern int dev_queue_xmit(struct sk_buff *skb); 894extern int dev_queue_xmit(struct sk_buff *skb);
894extern int register_netdevice(struct net_device *dev); 895extern int register_netdevice(struct net_device *dev);
895extern void unregister_netdevice(struct net_device *dev); 896extern 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
1480extern int __dev_addr_add(struct dev_addr_list **list, int *count, void *addr, int alen, int newonly); 1481extern int __dev_addr_add(struct dev_addr_list **list, int *count, void *addr, int alen, int newonly);
1481extern int __dev_addr_sync(struct dev_addr_list **to, int *to_count, struct dev_addr_list **from, int *from_count); 1482extern int __dev_addr_sync(struct dev_addr_list **to, int *to_count, struct dev_addr_list **from, int *from_count);
1482extern void __dev_addr_unsync(struct dev_addr_list **to, int *to_count, struct dev_addr_list **from, int *from_count); 1483extern void __dev_addr_unsync(struct dev_addr_list **to, int *to_count, struct dev_addr_list **from, int *from_count);
1483extern void dev_set_promiscuity(struct net_device *dev, int inc); 1484extern int dev_set_promiscuity(struct net_device *dev, int inc);
1484extern void dev_set_allmulti(struct net_device *dev, int inc); 1485extern int dev_set_allmulti(struct net_device *dev, int inc);
1485extern void netdev_state_change(struct net_device *dev); 1486extern void netdev_state_change(struct net_device *dev);
1487extern void netdev_bonding_change(struct net_device *dev);
1486extern void netdev_features_change(struct net_device *dev); 1488extern void netdev_features_change(struct net_device *dev);
1487/* Load a device via the kmod */ 1489/* Load a device via the kmod */
1488extern void dev_load(struct net *net, const char *name); 1490extern 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);
1509extern void dev_seq_stop(struct seq_file *seq, void *v); 1511extern void dev_seq_stop(struct seq_file *seq, void *v);
1510#endif 1512#endif
1511 1513
1514extern int netdev_class_create_file(struct class_attribute *class_attr);
1515extern void netdev_class_remove_file(struct class_attribute *class_attr);
1516
1512extern void linkwatch_run_queue(void); 1517extern void linkwatch_run_queue(void);
1513 1518
1514extern int netdev_compute_features(unsigned long all, unsigned long one); 1519extern int netdev_compute_features(unsigned long all, unsigned long one);