[dpdk-dev] [PATCH v2 28/52] net/ice/base: return correct error code

Ferruh Yigit ferruh.yigit at intel.com
Thu Jun 11 20:39:32 CEST 2020


On 6/9/2020 12:59 PM, Qi Zhang wrote:
> Return ICE_ERR_DOES_NOT_EXIST return code if admin command error code is
> ICE_AQ_RC_ENOENT (not exist). ice_aq_sw_rules is used when switch
> rule is getting added/deleted/updated. In case of delete/update
> switch rule, admin command can return ICE_AQ_RC_ENOENT error code
> if such rule does not exist, hence return ICE_ERR_DOES_NOT_EXIST error
> code from ice_aq_sw_rule, so that caller of this fucnction can decide

's/fucnction/function/'

> how to handle ICE_ERR_DOES_NOT_EXIST.
> 
> Allow proper cleanup of internal data structures from ice_rem_adv_rule
> function if ice_aq_sw_rules return error code ICE_ERR_DOES_NOT_EXIST
> otherwise per recipe:rule list will never become empty.
> 
> Signed-off-by: Kiran Patil <kiran.patil at intel.com>
> Signed-off-by: Paul M. Stillwell Jr <paul.m.stillwell.jr at intel.com>
> Signed-off-by: Qi Zhang <qi.z.zhang at intel.com>

<...>


More information about the dev mailing list