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 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); | |||
886 | extern int dev_alloc_name(struct net_device *dev, const char *name); | 886 | extern int dev_alloc_name(struct net_device *dev, const char *name); |
887 | extern int dev_open(struct net_device *dev); | 887 | extern int dev_open(struct net_device *dev); |
888 | extern int dev_close(struct net_device *dev); | 888 | extern int dev_close(struct net_device *dev); |
889 | extern void dev_disable_lro(struct net_device *dev); | ||
889 | extern int dev_queue_xmit(struct sk_buff *skb); | 890 | extern int dev_queue_xmit(struct sk_buff *skb); |
890 | extern int register_netdevice(struct net_device *dev); | 891 | extern int register_netdevice(struct net_device *dev); |
891 | extern void unregister_netdevice(struct net_device *dev); | 892 | extern 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 | |||
1476 | extern int __dev_addr_add(struct dev_addr_list **list, int *count, void *addr, int alen, int newonly); | 1477 | extern int __dev_addr_add(struct dev_addr_list **list, int *count, void *addr, int alen, int newonly); |
1477 | extern int __dev_addr_sync(struct dev_addr_list **to, int *to_count, struct dev_addr_list **from, int *from_count); | 1478 | extern int __dev_addr_sync(struct dev_addr_list **to, int *to_count, struct dev_addr_list **from, int *from_count); |
1478 | extern void __dev_addr_unsync(struct dev_addr_list **to, int *to_count, struct dev_addr_list **from, int *from_count); | 1479 | extern void __dev_addr_unsync(struct dev_addr_list **to, int *to_count, struct dev_addr_list **from, int *from_count); |
1479 | extern void dev_set_promiscuity(struct net_device *dev, int inc); | 1480 | extern int dev_set_promiscuity(struct net_device *dev, int inc); |
1480 | extern void dev_set_allmulti(struct net_device *dev, int inc); | 1481 | extern int dev_set_allmulti(struct net_device *dev, int inc); |
1481 | extern void netdev_state_change(struct net_device *dev); | 1482 | extern void netdev_state_change(struct net_device *dev); |
1483 | extern void netdev_bonding_change(struct net_device *dev); | ||
1482 | extern void netdev_features_change(struct net_device *dev); | 1484 | extern void netdev_features_change(struct net_device *dev); |
1483 | /* Load a device via the kmod */ | 1485 | /* Load a device via the kmod */ |
1484 | extern void dev_load(struct net *net, const char *name); | 1486 | extern 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); | |||
1505 | extern void dev_seq_stop(struct seq_file *seq, void *v); | 1507 | extern void dev_seq_stop(struct seq_file *seq, void *v); |
1506 | #endif | 1508 | #endif |
1507 | 1509 | ||
1510 | extern int netdev_class_create_file(struct class_attribute *class_attr); | ||
1511 | extern void netdev_class_remove_file(struct class_attribute *class_attr); | ||
1512 | |||
1508 | extern void linkwatch_run_queue(void); | 1513 | extern void linkwatch_run_queue(void); |
1509 | 1514 | ||
1510 | extern int netdev_compute_features(unsigned long all, unsigned long one); | 1515 | extern int netdev_compute_features(unsigned long all, unsigned long one); |