diff options
author | David S. Miller <davem@davemloft.net> | 2008-06-17 21:37:14 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-06-17 21:37:14 -0700 |
commit | 5bbc1722d52ad3df062d5742a7e958276e57ebd7 (patch) | |
tree | 8aa544f9a8623fba2fae933819627ceb839eac1f /net | |
parent | 30902dc3cb0ea1cfc7ac2b17bcf478ff98420d74 (diff) | |
parent | ae7b6487ec9c2e2a1551b9d291aa0dbbe0addf48 (diff) |
Merge branch 'davem-next' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
Diffstat (limited to 'net')
-rw-r--r-- | net/core/dev.c | 6 | ||||
-rw-r--r-- | net/core/net-sysfs.c | 13 |
2 files changed, 19 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 68d8df0992a..0e45742e715 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -961,6 +961,12 @@ void netdev_state_change(struct net_device *dev) } } +void netdev_bonding_change(struct net_device *dev) +{ + call_netdevice_notifiers(NETDEV_BONDING_FAILOVER, dev); +} +EXPORT_SYMBOL(netdev_bonding_change); + /** * dev_load - load a network module * @net: the applicable net namespace diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index dccd737ea2e..3f794131921 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -468,6 +468,19 @@ int netdev_register_kobject(struct net_device *net) return device_add(dev); } +int netdev_class_create_file(struct class_attribute *class_attr) +{ + return class_create_file(&net_class, class_attr); +} + +void netdev_class_remove_file(struct class_attribute *class_attr) +{ + class_remove_file(&net_class, class_attr); +} + +EXPORT_SYMBOL(netdev_class_create_file); +EXPORT_SYMBOL(netdev_class_remove_file); + void netdev_initialize_kobject(struct net_device *net) { struct device *device = &(net->dev); |