1 #include <linux/kernel.h>
2 #include <linux/module.h>
3 #include <linux/device.h>
4 #include <linux/netdevice.h>
9 #if defined(CONFIG_DEBUG_FS) && !defined(CONFIG_NET_NS)
14 static struct dentry *bonding_debug_root;
19 static int bond_debug_rlb_hash_show(
struct seq_file *
m,
void *
v)
30 "Destination MAC DEV\n");
36 client_info = &(bond_info->
rx_hashtbl[hash_index]);
41 client_info->
slave->dev->name);
56 .open = bond_debug_rlb_hash_open,
64 if (!bonding_debug_root)
70 if (!bond->debug_dir) {
71 pr_warning(
"%s: Warning: failed to register to debugfs\n",
77 bond, &bond_debug_rlb_hash_fops);
82 if (!bonding_debug_root)
92 if (!bonding_debug_root)
96 bonding_debug_root, bond->
dev->name);
100 pr_warning(
"%s: Warning: failed to reregister, "
101 "so just unregister old one\n",
111 if (!bonding_debug_root) {
112 pr_warning(
"Warning: Cannot create bonding directory"
120 bonding_debug_root =
NULL;