]> git.droids-corp.org - dpdk.git/commitdiff
net/i40e/base: store the requested FEC information
authorJingjing Wu <jingjing.wu@intel.com>
Tue, 27 Jun 2017 13:29:06 +0000 (21:29 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Jul 2017 13:00:56 +0000 (15:00 +0200)
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: Jingjing Wu <jingjing.wu@intel.com>
drivers/net/i40e/base/i40e_common.c
drivers/net/i40e/base/i40e_type.h

index 5f6dd7bc737b8b27aad7ade02c5f952e9154849a..7d59b592181f0d916d64a39c98c46e1031ed552a 100644 (file)
@@ -2826,6 +2826,10 @@ enum i40e_status_code 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);
+
                i40e_memcpy(hw->phy.link_info.module_type, &abilities.module_type,
                        sizeof(hw->phy.link_info.module_type), I40E_NONDMA_TO_NONDMA);
        }
index 52a114ab1e59e160716f02769f858c5bc45b8f57..af5347b74580d745eb6844c6a849d7978f32003b 100644 (file)
@@ -271,6 +271,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;