diff options
author | David S. Miller <davem@davemloft.net> | 2008-06-18 00:37:14 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-06-18 00:37:14 -0400 |
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 68d8df0992ab..0e45742e7158 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -961,6 +961,12 @@ void netdev_state_change(struct net_device *dev) | |||
961 | } | 961 | } |
962 | } | 962 | } |
963 | 963 | ||
964 | void netdev_bonding_change(struct net_device *dev) | ||
965 | { | ||
966 | call_netdevice_notifiers(NETDEV_BONDING_FAILOVER, dev); | ||
967 | } | ||
968 | EXPORT_SYMBOL(netdev_bonding_change); | ||
969 | |||
964 | /** | 970 | /** |
965 | * dev_load - load a network module | 971 | * dev_load - load a network module |
966 | * @net: the applicable net namespace | 972 | * @net: the applicable net namespace |
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index dccd737ea2e3..3f7941319217 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) | |||
468 | return device_add(dev); | 468 | return device_add(dev); |
469 | } | 469 | } |
470 | 470 | ||
471 | int netdev_class_create_file(struct class_attribute *class_attr) | ||
472 | { | ||
473 | return class_create_file(&net_class, class_attr); | ||
474 | } | ||
475 | |||
476 | void netdev_class_remove_file(struct class_attribute *class_attr) | ||
477 | { | ||
478 | class_remove_file(&net_class, class_attr); | ||
479 | } | ||
480 | |||
481 | EXPORT_SYMBOL(netdev_class_create_file); | ||
482 | EXPORT_SYMBOL(netdev_class_remove_file); | ||
483 | |||
471 | void netdev_initialize_kobject(struct net_device *net) | 484 | void netdev_initialize_kobject(struct net_device *net) |
472 | { | 485 | { |
473 | struct device *device = &(net->dev); | 486 | struct device *device = &(net->dev); |