diff options
author | Paul Durrant <Paul.Durrant@citrix.com> | 2016-10-10 09:30:53 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-13 09:53:09 -0400 |
commit | a9339b8e138d81b6ee928d0de3372c551cbd3d34 (patch) | |
tree | 8ba868830044aabc17536ac7b123fc0c35d3414d /drivers/net/xen-netback/common.h | |
parent | fa59b27c9d6f84e91e333175a242afa4aee79283 (diff) | |
download | op-kernel-dev-a9339b8e138d81b6ee928d0de3372c551cbd3d34.zip op-kernel-dev-a9339b8e138d81b6ee928d0de3372c551cbd3d34.tar.gz |
xen-netback: (re-)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.
The original version of this patch (commit c0c64c152389) was reverted due
to build failures caused by a conflict with commit 0364a8824c02
("xen-netback: switch to threaded irq for control ring"). This new version
of the patch is nearly identical to the original, the only difference
being that creation of the debugfs node is predicated on 'ctrl_irq' being
non-zero rather then the now non-existent 'ctrl_task'.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Cc: David S. Miller <davem@davemloft.net>
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 cf68149..3ce1f7d 100644 --- a/drivers/net/xen-netback/common.h +++ b/drivers/net/xen-netback/common.h @@ -407,4 +407,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__ */ |