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 f27fd2009334..1304ad2d7105 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -595,8 +595,8 @@ struct net_device
595 int uc_promisc; 595 int uc_promisc;
596 struct dev_addr_list *mc_list; /* Multicast mac addresses */ 596 struct dev_addr_list *mc_list; /* Multicast mac addresses */
597 int mc_count; /* Number of installed mcasts */ 597 int mc_count; /* Number of installed mcasts */
598 int promiscuity; 598 unsigned int promiscuity;
599 int allmulti; 599 unsigned int allmulti;
600 600
601 601
602 /* Protocol specific pointers */ 602 /* Protocol specific pointers */
@@ -886,6 +886,7 @@ extern struct net_device *__dev_get_by_name(struct net *net, const char *name);
886extern int dev_alloc_name(struct net_device *dev, const char *name); 886extern int dev_alloc_name(struct net_device *dev, const char *name);
887extern int dev_open(struct net_device *dev); 887extern int dev_open(struct net_device *dev);
888extern int dev_close(struct net_device *dev); 888extern int dev_close(struct net_device *dev);
889extern void dev_disable_lro(struct net_device *dev);
889extern int dev_queue_xmit(struct sk_buff *skb); 890extern int dev_queue_xmit(struct sk_buff *skb);
890extern int register_netdevice(struct net_device *dev); 891extern int register_netdevice(struct net_device *dev);
891extern void unregister_netdevice(struct net_device *dev); 892extern void unregister_netdevice(struct net_device *dev);
@@ -1476,9 +1477,10 @@ extern int __dev_addr_delete(struct dev_addr_list **list, int *count, void *ad
1476extern int __dev_addr_add(struct dev_addr_list **list, int *count, void *addr, int alen, int newonly); 1477extern int __dev_addr_add(struct dev_addr_list **list, int *count, void *addr, int alen, int newonly);
1477extern int __dev_addr_sync(struct dev_addr_list **to, int *to_count, struct dev_addr_list **from, int *from_count); 1478extern int __dev_addr_sync(struct dev_addr_list **to, int *to_count, struct dev_addr_list **from, int *from_count);
1478extern void __dev_addr_unsync(struct dev_addr_list **to, int *to_count, struct dev_addr_list **from, int *from_count); 1479extern void __dev_addr_unsync(struct dev_addr_list **to, int *to_count, struct dev_addr_list **from, int *from_count);
1479extern void dev_set_promiscuity(struct net_device *dev, int inc); 1480extern int dev_set_promiscuity(struct net_device *dev, int inc);
1480extern void dev_set_allmulti(struct net_device *dev, int inc); 1481extern int dev_set_allmulti(struct net_device *dev, int inc);
1481extern void netdev_state_change(struct net_device *dev); 1482extern void netdev_state_change(struct net_device *dev);
1483extern void netdev_bonding_change(struct net_device *dev);
1482extern void netdev_features_change(struct net_device *dev); 1484extern void netdev_features_change(struct net_device *dev);
1483/* Load a device via the kmod */ 1485/* Load a device via the kmod */
1484extern void dev_load(struct net *net, const char *name); 1486extern void dev_load(struct net *net, const char *name);
@@ -1505,6 +1507,9 @@ extern void *dev_seq_next(struct seq_file *seq, void *v, loff_t *pos);
1505extern void dev_seq_stop(struct seq_file *seq, void *v); 1507extern void dev_seq_stop(struct seq_file *seq, void *v);
1506#endif 1508#endif
1507 1509
1510extern int netdev_class_create_file(struct class_attribute *class_attr);
1511extern void netdev_class_remove_file(struct class_attribute *class_attr);
1512
1508extern void linkwatch_run_queue(void); 1513extern void linkwatch_run_queue(void);
1509 1514
1510extern int netdev_compute_features(unsigned long all, unsigned long one); 1515extern int netdev_compute_features(unsigned long all, unsigned long one);