[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH net-next v10 7/7] xen-netfront: initialise queue name in xennet_init_queue
On Wednesday, 4 June 2014, Wei Liu <wei.liu2@xxxxxxxxxx> wrote:
Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
Reviewed-by: David Vrabel <david.vrabel@xxxxxxxxxx>
---
Âdrivers/net/xen-netfront.c | Â Â3 +++
Â1 file changed, 3 insertions(+)
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c
index 55bf834..5a7872a 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 = "" 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++) {
--
1.7.10.4
-- Andrew J. Bennieston
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|