summaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netfront.c
diff options
context:
space:
mode:
authorWei Liu <wei.liu2@citrix.com>2014-06-04 10:30:47 +0100
committerDavid S. Miller <davem@davemloft.net>2014-06-04 14:48:17 -0700
commit8b715010aaf912423b20daf79cf52ade39348157 (patch)
treeaccbbde898ef0ec2f900df598e02664452a8ba57 /drivers/net/xen-netfront.c
parenta2deb8b1e7a403fd63e08f87eb95217dd983e0d3 (diff)
downloadblackbird-op-linux-8b715010aaf912423b20daf79cf52ade39348157.tar.gz
blackbird-op-linux-8b715010aaf912423b20daf79cf52ade39348157.zip
xen-netfront: initialise queue name in xennet_init_queue
Signed-off-by: Wei Liu <wei.liu2@citrix.com> Reviewed-by: David Vrabel <david.vrabel@citrix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netfront.c')
-rw-r--r--drivers/net/xen-netfront.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c
index 55bf834d6a8c..5a7872ac3566 100644
--- a/drivers/net/xen-netfront.c
+++ b/drivers/net/xen-netfront.c
@@ -1665,6 +1665,9 @@ static int xennet_init_queue(struct netfront_queue *queue)
queue->rx_refill_timer.data = (unsigned long)queue;
queue->rx_refill_timer.function = rx_refill_timeout;
+ snprintf(queue->name, sizeof(queue->name), "%s-q%u",
+ queue->info->netdev->name, queue->id);
+
/* Initialise tx_skbs as a free chain containing every entry. */
queue->tx_skb_freelist = 0;
for (i = 0; i < NET_TX_RING_SIZE; i++) {
OpenPOWER on IntegriCloud