]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/net/xen-netfront.c
xen/netfront: add netconsole support.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 23 Jan 2012 08:24:43 +0000 (08:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jan 2012 04:00:01 +0000 (23:00 -0500)
commitcf66f9d48a9c95baf8f13b199a633ce1c4cf952a
tree80eff4d6311c53c14cf25bd3cf25638e05e81949
parentc54a45700195d9491e2cc2115ea61315a8ba3927
xen/netfront: add netconsole support.

add polling interface to xen-netfront device to support netconsole

This patch also alters the spin_lock usage to use irqsave variant.
Documentation/networking/netdevices.txt states that start_xmit
can be called with interrupts disabled by netconsole and therefore using
the irqsave/restore locking in this function is looks correct.

Signed-off-by: Tina.Yang <tina.yang@oracle.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Zhenzhong.Duan <zhenzhong.duan@oracle.com>
Tested-by: gurudas.pai <gurudas.pai@oracle.com>
[v1: Copy-n-pasted Ian Campbell comments]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netfront.c