From: Qi Zhang Date: Mon, 23 Mar 2020 07:17:29 +0000 (+0800) Subject: net/ice/base: replace u16 with enum X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4a3c620f6126be5763a45daccb769a5efd1bceab;p=dpdk.git net/ice/base: replace u16 with enum Use enum ice_flow_field directly so no need to be converted from u16 for ice_flow_xtract_fld Signed-off-by: Paul M Stillwell Jr Signed-off-by: Qi Zhang Acked-by: Qiming Yang --- diff --git a/drivers/net/ice/base/ice_flow.c b/drivers/net/ice/base/ice_flow.c index 02f169808a..6c413e307e 100644 --- a/drivers/net/ice/base/ice_flow.c +++ b/drivers/net/ice/base/ice_flow.c @@ -937,15 +937,14 @@ ice_flow_create_xtrct_seq(struct ice_hw *hw, for (i = 0; i < params->prof->segs_cnt; i++) { u64 match = params->prof->segs[i].match; - u16 j; + enum ice_flow_field j; for (j = 0; j < ICE_FLOW_FIELD_IDX_MAX && match; j++) { const u64 bit = BIT_ULL(j); if (match & bit) { - status = ice_flow_xtract_fld - (hw, params, i, (enum ice_flow_field)j, - match); + status = ice_flow_xtract_fld(hw, params, i, j, + match); if (status) return status; match &= ~bit;