]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
net: ena: Remove redundant print of placement policy
authorShay Agroskin <shayagr@amazon.com>
Mon, 21 Sep 2020 08:37:39 +0000 (11:37 +0300)
committerKelsey Skunberg <kelsey.skunberg@canonical.com>
Fri, 22 Jan 2021 03:27:04 +0000 (20:27 -0700)
BugLink: https://bugs.launchpad.net/bugs/1910291
The placement policy is printed in the process of queue creation in
ena_up(). No need to print it in ena_probe().

Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: Shay Agroskin <shayagr@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit a8aea84981ad1b0074670a284b13d416d2881f32)
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Acked-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/net/ethernet/amazon/ena/ena_netdev.c

index b4d96332d68e136a67cc99688940a98e3a2ba647..025ab26f712093ca3d3bc03ba3a1637ba5d1b8e2 100644 (file)
@@ -4155,7 +4155,6 @@ static int ena_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
        struct net_device *netdev;
        static int adapters_found;
        u32 max_num_io_queues;
-       char *queue_type_str;
        bool wd_state;
        int bars, rc;
 
@@ -4339,15 +4338,10 @@ static int ena_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
        timer_setup(&adapter->timer_service, ena_timer_service, 0);
        mod_timer(&adapter->timer_service, round_jiffies(jiffies + HZ));
 
-       if (ena_dev->tx_mem_queue_type == ENA_ADMIN_PLACEMENT_POLICY_HOST)
-               queue_type_str = "Regular";
-       else
-               queue_type_str = "Low Latency";
-
        dev_info(&pdev->dev,
-                "%s found at mem %lx, mac addr %pM, Placement policy: %s\n",
+                "%s found at mem %lx, mac addr %pM\n",
                 DEVICE_NAME, (long)pci_resource_start(pdev, 0),
-                netdev->dev_addr, queue_type_str);
+                netdev->dev_addr);
 
        set_bit(ENA_FLAG_DEVICE_RUNNING, &adapter->flags);