i40e: Fix message for other card without FEC.
authorCzeslaw Zagorski <czeslawx.zagorski@intel.com>
Mon, 26 Aug 2019 18:16:54 +0000 (11:16 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 11 Sep 2019 16:10:46 +0000 (09:10 -0700)
When variable "req_fec, fec, an" are empty,
dmesg shows log with "Requested FEC: , Negotiated FEC: , Autoneg:".
Add link dmesg log for cards without FEC.

Signed-off-by: Czeslaw Zagorski <czeslawx.zagorski@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c

index 700f38e..6031223 100644 (file)
@@ -6594,11 +6594,15 @@ void i40e_print_link_message(struct i40e_vsi *vsi, bool isup)
                        else
                                req_fec = "CL74 FC-FEC/BASE-R";
                }
+               netdev_info(vsi->netdev,
+                           "NIC Link is Up, %sbps Full Duplex, Requested FEC: %s, Negotiated FEC: %s, Autoneg: %s, Flow Control: %s\n",
+                           speed, req_fec, fec, an, fc);
+       } else {
+               netdev_info(vsi->netdev,
+                           "NIC Link is Up, %sbps Full Duplex, Flow Control: %s\n",
+                           speed, fc);
        }
 
-       netdev_info(vsi->netdev,
-                   "NIC Link is Up, %sbps Full Duplex, Requested FEC: %s, Negotiated FEC: %s, Autoneg: %s, Flow Control: %s\n",
-                   speed, req_fec, fec, an, fc);
 }
 
 /**