]> git.droids-corp.org - dpdk.git/commitdiff
net/ice: fix overwriting of LSE bit by DCF
authorMichal Wilczynski <michal.wilczynski@intel.com>
Fri, 18 Feb 2022 11:57:19 +0000 (12:57 +0100)
committerQi Zhang <qi.z.zhang@intel.com>
Sun, 20 Feb 2022 13:07:26 +0000 (14:07 +0100)
After enabling DCF on a VF, the ice driver stops receiving
link updates on it's Admin Receive Queue. During the init
of DCF ice_aqc_opc_get_link_status command is send to the
firmware without LSE (Link Status Event) bit set. This prevents
the ice driver from receiving up/down events, and correspondingly
updating netdev.

Fixes: 0b02c9519432 ("net/ice: handle PF initialization by DCF")
Cc: stable@dpdk.org
Signed-off-by: Michal Wilczynski <michal.wilczynski@intel.com>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
drivers/net/ice/ice_dcf_parent.c

index 0c8c2ed6c7e6443dfb3be765ef512bdbc9f40967..2f96dedcce1c4aa8cc5b239718283d212fd10a2e 100644 (file)
@@ -340,7 +340,7 @@ ice_dcf_init_parent_hw(struct ice_hw *hw)
                goto err_unroll_alloc;
 
        /* Initialize port_info struct with link information */
-       status = ice_aq_get_link_info(hw->port_info, false, NULL, NULL);
+       status = ice_aq_get_link_info(hw->port_info, true, NULL, NULL);
        if (status)
                goto err_unroll_alloc;