xen-netfront: initialise queue name in xennet_init_queue
authorWei Liu <wei.liu2@citrix.com>
Wed, 4 Jun 2014 09:30:47 +0000 (10:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jun 2014 21:48:17 +0000 (14:48 -0700)
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>
drivers/net/xen-netfront.c

index 55bf834d6a8c3f23113583da2f4d6d7c16fc19d1..5a7872ac35661bd039633c4cb77102f40fa58dbb 100644 (file)
@@ -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++) {