diff options
author | Paul Durrant <Paul.Durrant@citrix.com> | 2016-08-17 16:13:29 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-18 23:29:09 -0700 |
commit | c0c64c152389ad73306b9b0796357210ec6d32ee (patch) | |
tree | 0e35dcb7e3350c832a3200e9477648a6a7519bf3 /drivers/net/xen-netback/common.h | |
parent | c7b256f998f6d00d4548090aa16fb34e005828c1 (diff) | |
download | linux-c0c64c152389ad73306b9b0796357210ec6d32ee.tar.bz2 |
xen-netback: create a debugfs node for hash information
It is useful to be able to see the hash configuration when running tests.
This patch adds a debugfs node for that purpose.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netback/common.h')
-rw-r--r-- | drivers/net/xen-netback/common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/xen-netback/common.h b/drivers/net/xen-netback/common.h index 84d6cbdd11b2..3a562683603c 100644 --- a/drivers/net/xen-netback/common.h +++ b/drivers/net/xen-netback/common.h @@ -412,4 +412,8 @@ u32 xenvif_set_hash_mapping(struct xenvif *vif, u32 gref, u32 len, void xenvif_set_skb_hash(struct xenvif *vif, struct sk_buff *skb); +#ifdef CONFIG_DEBUG_FS +void xenvif_dump_hash_info(struct xenvif *vif, struct seq_file *m); +#endif + #endif /* __XEN_NETBACK__COMMON_H__ */ |