From: Michal Wilczynski Date: Fri, 18 Feb 2022 11:57:19 +0000 (+0100) Subject: net/ice: fix overwriting of LSE bit by DCF X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ea9fac93e1ca1f0684b2ccdad9467a7760b4a3eb;p=dpdk.git net/ice: fix overwriting of LSE bit by DCF 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 Acked-by: Haiyue Wang --- diff --git a/drivers/net/ice/ice_dcf_parent.c b/drivers/net/ice/ice_dcf_parent.c index 0c8c2ed6c7..2f96dedcce 100644 --- a/drivers/net/ice/ice_dcf_parent.c +++ b/drivers/net/ice/ice_dcf_parent.c @@ -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;