xen-netback: Adding debugfs "io_ring_qX" files
authorZoltan Kiss <zoltan.kiss@citrix.com>
Tue, 8 Jul 2014 18:49:14 +0000 (19:49 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jul 2014 03:48:36 +0000 (20:48 -0700)
commitf51de24356e49e4dcb5095e87717065580912120
tree33439ff1f49a3d2d61455f0c6585b3369088b25c
parenta37934fc0d0c087dd120dba229077048f1abfd37
xen-netback: Adding debugfs "io_ring_qX" files

This patch adds debugfs capabilities to netback. There used to be a similar
patch floating around for classic kernel, but it used procfs. It is based on a
very similar blkback patch.
It creates xen-netback/[vifname]/io_ring_q[queueno] files, reading them output
various ring variables etc. Writing "kick" into it imitates an interrupt
happened, it can be useful to check whether the ring is just stalled due to a
missed interrupt.

Signed-off-by: Zoltan Kiss <zoltan.kiss@citrix.com>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: xen-devel@lists.xenproject.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/common.h
drivers/net/xen-netback/interface.c
drivers/net/xen-netback/netback.c
drivers/net/xen-netback/xenbus.c