]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ice: Add missing case in print_link_msg for printing flow control
authorBrett Creeley <brett.creeley@intel.com>
Tue, 19 Feb 2019 23:04:06 +0000 (15:04 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 26 Mar 2019 22:05:27 +0000 (15:05 -0700)
Currently we aren't checking for the ICE_FC_NONE case for the current
flow control mode. This is causing "Unknown" to be printed for the
current flow control method if flow control is disabled. Fix this by
adding the case for ICE_FC_NONE to print "None".

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_main.c

index 514aa31db8a6c37cc6281ca8a37b22377b4deeb9..f7073e04697972ca8d6bc1e3a879282d38fb0061 100644 (file)
@@ -595,6 +595,9 @@ void ice_print_link_msg(struct ice_vsi *vsi, bool isup)
        case ICE_FC_RX_PAUSE:
                fc = "RX";
                break;
+       case ICE_FC_NONE:
+               fc = "None";
+               break;
        default:
                fc = "Unknown";
                break;