aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorZoltan Kiss <zoltan.kiss@citrix.com>2014-03-06 16:48:24 -0500
committerDavid S. Miller <davem@davemloft.net>2014-03-07 15:56:34 -0500
commit121fa4b77775549c3c5eb41eb335d7dcbb801f90 (patch)
treecac1ae8a3d4ac72411312d27090e0a9106b6586c /drivers/net/xen-netback/interface.c
parent8f13dd9612286cc0d38d32ff9543763b7c74f6a5 (diff)
xen-netback: Minor refactoring of netback code
This patch contains a few bits of refactoring before introducing the grant mapping changes: - introducing xenvif_tx_pending_slots_available(), as this is used several times, and will be used more often - rename the thread to vifX.Y-guest-rx, to signify it does RX work from the guest point of view Signed-off-by: Zoltan Kiss <zoltan.kiss@citrix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
-rw-r--r--drivers/net/xen-netback/interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c
index 7669d49a67e2..bc32627a22cb 100644
--- a/drivers/net/xen-netback/interface.c
+++ b/drivers/net/xen-netback/interface.c
@@ -421,8 +421,8 @@ int xenvif_connect(struct xenvif *vif, unsigned long tx_ring_ref,
421 disable_irq(vif->rx_irq); 421 disable_irq(vif->rx_irq);
422 } 422 }
423 423
424 task = kthread_create(xenvif_kthread, 424 task = kthread_create(xenvif_kthread_guest_rx,
425 (void *)vif, "%s", vif->dev->name); 425 (void *)vif, "%s-guest-rx", vif->dev->name);
426 if (IS_ERR(task)) { 426 if (IS_ERR(task)) {
427 pr_warn("Could not allocate kthread for %s\n", vif->dev->name); 427 pr_warn("Could not allocate kthread for %s\n", vif->dev->name);
428 err = PTR_ERR(task); 428 err = PTR_ERR(task);