]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
i40e: Store the requested FEC information
authorMariusz Stachura <mariusz.stachura@intel.com>
Wed, 12 Jul 2017 09:46:08 +0000 (05:46 -0400)
committerJack Vogel <jack.vogel@oracle.com>
Tue, 10 Oct 2017 21:15:25 +0000 (14:15 -0700)
Store information about FEC modes, that were requested. It will be used
in printing link status information function and this way there is no
need to call admin queue there.

Signed-off-by: Mariusz Stachura <mariusz.stachura@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Orabug: 26785018
(cherry picked from commit ed601f660131be6bb9a8a109b0f2bf031786100f)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
Reviewed-by: Kyle Fortin <kyle.fortin@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_common.c
drivers/net/ethernet/intel/i40e/i40e_type.h
drivers/net/ethernet/intel/i40evf/i40e_type.h

index f161f7c421d67a7fc185028af27f47db9c7fb8fe..c052c913a2541a7a055d52c479eeda8204679144 100644 (file)
@@ -2556,6 +2556,10 @@ i40e_status i40e_update_link_info(struct i40e_hw *hw)
                if (status)
                        return status;
 
+               hw->phy.link_info.req_fec_info =
+                       abilities.fec_cfg_curr_mod_ext_info &
+                       (I40E_AQ_REQUEST_FEC_KR | I40E_AQ_REQUEST_FEC_RS);
+
                memcpy(hw->phy.link_info.module_type, &abilities.module_type,
                       sizeof(hw->phy.link_info.module_type));
        }
index 2bb9996cf99c0e6961d8d7075b54902673df2b3f..e6e62d3ec331b66cec172eb8e644c1f6ebda68ee 100644 (file)
@@ -185,6 +185,7 @@ struct i40e_link_status {
        enum i40e_aq_link_speed link_speed;
        u8 link_info;
        u8 an_info;
+       u8 req_fec_info;
        u8 fec_info;
        u8 ext_info;
        u8 loopback;
index bde7f24af1c6f3a01af9773f5e721819bd49eb1d..2ea919d9cdcf0d159fb9f4abd56489df67d61c70 100644 (file)
@@ -159,6 +159,7 @@ struct i40e_link_status {
        enum i40e_aq_link_speed link_speed;
        u8 link_info;
        u8 an_info;
+       u8 req_fec_info;
        u8 fec_info;
        u8 ext_info;
        u8 loopback;