aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bonding.h
diff options
context:
space:
mode:
authorTaku Izumi <izumi.taku@jp.fujitsu.com>2010-12-09 10:17:13 -0500
committerDavid S. Miller <davem@davemloft.net>2010-12-10 19:24:33 -0500
commitf073c7ca29a4a7e14060d9d3ddf09bfbb7cd9cc0 (patch)
treed545b7e77908ffb101c16d1be8cfe641828fa9b9 /drivers/net/bonding/bonding.h
parent6c2c9d964e71770e7d6efc1a82f3621005d12185 (diff)
bonding: add the debugfs facility to the bonding driver
This patch provides the debugfs facility to the bonding driver. The "bonding" directory is created in the debugfs root and directories of each bonding interface (like bond0, bond1...) are created in that. # mount -t debugfs none /sys/kernel/debug # ls /sys/kernel/debug/bonding bond0 bond1 Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com> Signed-off-by: Jay Vosburgh <fubar@us.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bonding.h')
-rw-r--r--drivers/net/bonding/bonding.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h
index ad3ae46a4c01..03710f8f5c49 100644
--- a/drivers/net/bonding/bonding.h
+++ b/drivers/net/bonding/bonding.h
@@ -259,6 +259,10 @@ struct bonding {
259#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) 259#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
260 struct in6_addr master_ipv6; 260 struct in6_addr master_ipv6;
261#endif 261#endif
262#ifdef CONFIG_DEBUG_FS
263 /* debugging suport via debugfs */
264 struct dentry *debug_dir;
265#endif /* CONFIG_DEBUG_FS */
262}; 266};
263 267
264/** 268/**
@@ -380,6 +384,11 @@ void bond_select_active_slave(struct bonding *bond);
380void bond_change_active_slave(struct bonding *bond, struct slave *new_active); 384void bond_change_active_slave(struct bonding *bond, struct slave *new_active);
381void bond_register_arp(struct bonding *); 385void bond_register_arp(struct bonding *);
382void bond_unregister_arp(struct bonding *); 386void bond_unregister_arp(struct bonding *);
387void bond_create_debugfs(void);
388void bond_destroy_debugfs(void);
389void bond_debug_register(struct bonding *bond);
390void bond_debug_unregister(struct bonding *bond);
391void bond_debug_reregister(struct bonding *bond);
383 392
384struct bond_net { 393struct bond_net {
385 struct net * net; /* Associated network namespace */ 394 struct net * net; /* Associated network namespace */