parse_state->actions |= attr->action;
                if (!tc_act->stats_action)
-                       attr->tc_act_cookies[attr->tc_act_cookies_count++] = act->act_cookie;
+                       attr->tc_act_cookies[attr->tc_act_cookies_count++] = act->cookie;
 
                /* Split attr for multi table act if not the last act. */
                if (jump_state.jump_target ||
 
                        }
                        ingress = mlxsw_sp_flow_block_is_ingress_bound(block);
                        err = mlxsw_sp_acl_rulei_act_drop(rulei, ingress,
-                                                         act->cookie, extack);
+                                                         act->user_cookie, extack);
                        if (err) {
                                NL_SET_ERR_MSG_MOD(extack, "Cannot append drop action");
                                return err;
 
        struct gnet_stats_basic_sync __percpu *cpu_bstats;
        struct gnet_stats_basic_sync __percpu *cpu_bstats_hw;
        struct gnet_stats_queue __percpu *cpu_qstats;
-       struct tc_cookie        __rcu *act_cookie;
+       struct tc_cookie        __rcu *user_cookie;
        struct tcf_chain        __rcu *goto_chain;
        u32                     tcfa_flags;
        u8                      hw_stats;
 
 struct flow_action_entry {
        enum flow_action_id             id;
        u32                             hw_index;
-       unsigned long                   act_cookie;
+       unsigned long                   cookie;
        enum flow_action_hw_stats       hw_stats;
        action_destr                    destructor;
        void                            *destructor_priv;
                        u16             sid;
                } pppoe;
        };
-       struct flow_action_cookie *cookie; /* user defined action cookie */
+       struct flow_action_cookie *user_cookie; /* user defined action cookie */
 };
 
 struct flow_action {
 
        free_percpu(p->cpu_bstats_hw);
        free_percpu(p->cpu_qstats);
 
-       tcf_set_action_cookie(&p->act_cookie, NULL);
+       tcf_set_action_cookie(&p->user_cookie, NULL);
        if (chain)
                tcf_chain_put_by_act(chain);
 
 
 static size_t tcf_action_shared_attrs_size(const struct tc_action *act)
 {
-       struct tc_cookie *act_cookie;
+       struct tc_cookie *user_cookie;
        u32 cookie_len = 0;
 
        rcu_read_lock();
-       act_cookie = rcu_dereference(act->act_cookie);
+       user_cookie = rcu_dereference(act->user_cookie);
 
-       if (act_cookie)
-               cookie_len = nla_total_size(act_cookie->len);
+       if (user_cookie)
+               cookie_len = nla_total_size(user_cookie->len);
        rcu_read_unlock();
 
        return  nla_total_size(0) /* action number nested */
                goto nla_put_failure;
 
        rcu_read_lock();
-       cookie = rcu_dereference(a->act_cookie);
+       cookie = rcu_dereference(a->user_cookie);
        if (cookie) {
                if (nla_put(skb, TCA_ACT_COOKIE, cookie->len, cookie->data)) {
                        rcu_read_unlock();
 {
        bool police = flags & TCA_ACT_FLAGS_POLICE;
        struct nla_bitfield32 userflags = { 0, 0 };
+       struct tc_cookie *user_cookie = NULL;
        u8 hw_stats = TCA_ACT_HW_STATS_ANY;
        struct nlattr *tb[TCA_ACT_MAX + 1];
-       struct tc_cookie *cookie = NULL;
        struct tc_action *a;
        int err;
 
                if (err < 0)
                        return ERR_PTR(err);
                if (tb[TCA_ACT_COOKIE]) {
-                       cookie = nla_memdup_cookie(tb);
-                       if (!cookie) {
+                       user_cookie = nla_memdup_cookie(tb);
+                       if (!user_cookie) {
                                NL_SET_ERR_MSG(extack, "No memory to generate TC cookie");
                                err = -ENOMEM;
                                goto err_out;
        *init_res = err;
 
        if (!police && tb[TCA_ACT_COOKIE])
-               tcf_set_action_cookie(&a->act_cookie, cookie);
+               tcf_set_action_cookie(&a->user_cookie, user_cookie);
 
        if (!police)
                a->hw_stats = hw_stats;
        return a;
 
 err_out:
-       if (cookie) {
-               kfree(cookie->data);
-               kfree(cookie);
+       if (user_cookie) {
+               kfree(user_cookie->data);
+               kfree(user_cookie);
        }
        return ERR_PTR(err);
 }
 
 }
 EXPORT_SYMBOL(tc_setup_cb_reoffload);
 
-static int tcf_act_get_cookie(struct flow_action_entry *entry,
-                             const struct tc_action *act)
+static int tcf_act_get_user_cookie(struct flow_action_entry *entry,
+                                  const struct tc_action *act)
 {
-       struct tc_cookie *cookie;
+       struct tc_cookie *user_cookie;
        int err = 0;
 
        rcu_read_lock();
-       cookie = rcu_dereference(act->act_cookie);
-       if (cookie) {
-               entry->cookie = flow_action_cookie_create(cookie->data,
-                                                         cookie->len,
-                                                         GFP_ATOMIC);
-               if (!entry->cookie)
+       user_cookie = rcu_dereference(act->user_cookie);
+       if (user_cookie) {
+               entry->user_cookie = flow_action_cookie_create(user_cookie->data,
+                                                              user_cookie->len,
+                                                              GFP_ATOMIC);
+               if (!entry->user_cookie)
                        err = -ENOMEM;
        }
        rcu_read_unlock();
        return err;
 }
 
-static void tcf_act_put_cookie(struct flow_action_entry *entry)
+static void tcf_act_put_user_cookie(struct flow_action_entry *entry)
 {
-       flow_action_cookie_destroy(entry->cookie);
+       flow_action_cookie_destroy(entry->user_cookie);
 }
 
 void tc_cleanup_offload_action(struct flow_action *flow_action)
        int i;
 
        flow_action_for_each(i, entry, flow_action) {
-               tcf_act_put_cookie(entry);
+               tcf_act_put_user_cookie(entry);
                if (entry->destructor)
                        entry->destructor(entry->destructor_priv);
        }
 
                entry = &flow_action->entries[j];
                spin_lock_bh(&act->tcfa_lock);
-               err = tcf_act_get_cookie(entry, act);
+               err = tcf_act_get_user_cookie(entry, act);
                if (err)
                        goto err_out_locked;
 
                for (k = 0; k < index ; k++) {
                        entry[k].hw_stats = tc_act_hw_stats(act->hw_stats);
                        entry[k].hw_index = act->tcfa_index;
-                       entry[k].act_cookie = (unsigned long)act;
+                       entry[k].cookie = (unsigned long)act;
                }
 
                j += index;