From: Qi Zhang Date: Thu, 29 Aug 2019 02:36:41 +0000 (+0800) Subject: net/ice/base: fix flag settings in AQ call X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=21b28a9ef74946a8031e4d260e079de1c28428ec;p=dpdk.git net/ice/base: fix flag settings in AQ call Removed setting Read flag in the Get Allocated Resource Descriptors AQ command (0x020A). The read flag is not required for this command and causes the FW to return an error. Fixes: d781ccbdd15d ("net/ice/base: add functions to get allocated resources") Cc: stable@dpdk.org Signed-off-by: Dan Nowlin Signed-off-by: Paul M Stillwell Jr Signed-off-by: Qi Zhang Acked-by: Xiaolong Ye --- diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c index a4966d0a13..9e85da5300 100644 --- a/drivers/net/ice/base/ice_switch.c +++ b/drivers/net/ice/base/ice_switch.c @@ -2978,8 +2978,6 @@ ice_aq_get_res_descs(struct ice_hw *hw, u16 num_entries, ICE_AQC_RES_TYPE_FLAG_SHARED : 0)); cmd->ops.cmd.first_desc = CPU_TO_LE16(*desc_id); - desc.flags |= CPU_TO_LE16(ICE_AQ_FLAG_RD); - status = ice_aq_send_cmd(hw, &desc, buf, buf_size, cd); if (!status) *desc_id = LE16_TO_CPU(cmd->ops.resp.next_desc);