Lines Matching refs:in_hw_count
137 act->in_hw_count = hw_count; in offload_action_hw_count_set()
143 act->in_hw_count += hw_count; in offload_action_hw_count_inc()
149 act->in_hw_count = act->in_hw_count > hw_count ? in offload_action_hw_count_dec()
150 act->in_hw_count - hw_count : 0; in offload_action_hw_count_dec()
173 return !!act->in_hw_count; in tc_act_in_hw()
259 u32 in_hw_count = 0; in tcf_action_offload_add_ex() local
281 err = tcf_action_offload_cmd(fl_action, &in_hw_count, cb, cb_priv); in tcf_action_offload_add_ex()
283 cb ? offload_action_hw_count_inc(action, in_hw_count) : in tcf_action_offload_add_ex()
284 offload_action_hw_count_set(action, in_hw_count); in tcf_action_offload_add_ex()
340 u32 in_hw_count = 0; in tcf_action_offload_del_ex() local
350 err = tcf_action_offload_cmd(&fl_act, &in_hw_count, cb, cb_priv); in tcf_action_offload_del_ex()
354 if (!cb && action->in_hw_count != in_hw_count) in tcf_action_offload_del_ex()
358 if (cb && in_hw_count) in tcf_action_offload_del_ex()
359 offload_action_hw_count_dec(action, in_hw_count); in tcf_action_offload_del_ex()
1193 if (nla_put_u32(skb, TCA_ACT_IN_HW_COUNT, a->in_hw_count)) in tcf_action_dump_1()