]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ixgbe: make a workaround to tx hang issue under dom
authorEthan Zhao <ethan.zhao@oracle.com>
Wed, 9 Dec 2015 10:50:41 +0000 (02:50 -0800)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Wed, 9 Dec 2015 19:04:56 +0000 (11:04 -0800)
report 1 tx queue to net core to workaround the tx hang
issue reported in Xen  environment.
The change is only limited to dom0 and baremetal is left unchanged.

Orabug: 22171500
Signed-off-by: Ethan Zhao <ethan.zhao@oracle.com>
Signed-off-by: Guru Anbalagane <guru.anbalagane@oracle.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

index ec58444dff1e702cf9f97e03b0a0063ccdb6c92c..7334296be3f0feaef4a176220000d4203c15372a 100644 (file)
@@ -51,6 +51,7 @@
 #include <linux/prefetch.h>
 #include <scsi/fc/fc_fcoe.h>
 #include <net/vxlan.h>
+#include <xen/xen.h>
 
 #ifdef CONFIG_OF
 #include <linux/of_net.h>
@@ -5793,7 +5794,7 @@ static int ixgbe_open(struct net_device *netdev)
        else
                queues = adapter->num_tx_queues;
 
-       err = netif_set_real_num_tx_queues(netdev, queues);
+       err = netif_set_real_num_tx_queues(netdev, xen_initial_domain() ? 1 : queues);
        if (err)
                goto err_set_queues;