Unified · Split
| @@ -44,7 +44,7 @@ static int tcf_connmark(struct sk_buff *skb, const struct tc_action *a, · 43 unmodified lines | ||
| 44 | 44 | int proto; |
| 45 | 45 | |
| 46 | 46 | spin_lock(&ca->tcf_lock); |
| 47 | − ca->tcf_tm.lastuse = jiffies; | |
| 47 | + tcf_lastuse_update(&ca->tcf_tm); | |
| 48 | 48 | bstats_update(&ca->tcf_bstats, skb); |
| 49 | 49 | |
| 50 | 50 | if (skb->protocol == htons(ETH_P_IP)) { |
| @@ -501,7 +501,7 @@ static int tcf_csum(struct sk_buff *skb, · 500 unmodified lines | ||
| 501 | 501 | u32 update_flags; |
| 502 | 502 | |
| 503 | 503 | spin_lock(&p->tcf_lock); |
| 504 | − p->tcf_tm.lastuse = jiffies; | |
| 504 | + tcf_lastuse_update(&p->tcf_tm); | |
| 505 | 505 | bstats_update(&p->tcf_bstats, skb); |
| 506 | 506 | action = p->tcf_action; |
| 507 | 507 | update_flags = p->update_flags; |
| @@ -623,7 +623,7 @@ static int tcf_ife_decode(struct sk_buff *skb, const struct tc_action *a, · 622 unmodified lines | ||
| 623 | 623 | |
| 624 | 624 | spin_lock(&ife->tcf_lock); |
| 625 | 625 | bstats_update(&ife->tcf_bstats, skb); |
| 626 | − ife->tcf_tm.lastuse = jiffies; | |
| 626 | + tcf_lastuse_update(&ife->tcf_tm); | |
| 627 | 627 | spin_unlock(&ife->tcf_lock); |
| 628 | 628 | |
| 629 | 629 | ifehdrln = ntohs(ifehdrln); |
| @@ -711,7 +711,7 @@ static int tcf_ife_encode(struct sk_buff *skb, const struct tc_action *a, · 81 unmodified lines | ||
| 711 | 711 | |
| 712 | 712 | spin_lock(&ife->tcf_lock); |
| 713 | 713 | bstats_update(&ife->tcf_bstats, skb); |
| 714 | − ife->tcf_tm.lastuse = jiffies; | |
| 714 | + tcf_lastuse_update(&ife->tcf_tm); | |
| 715 | 715 | |
| 716 | 716 | if (!metalen) { /* no metadata to send */ |
| 717 | 717 | /* abuse overlimits to count when we allow packet |
| @@ -802,7 +802,7 @@ static int tcf_ife_act(struct sk_buff *skb, const struct tc_action *a, · 84 unmodified lines | ||
| 802 | 802 | pr_info_ratelimited("unknown failure(policy neither de/encode\n"); |
| 803 | 803 | spin_lock(&ife->tcf_lock); |
| 804 | 804 | bstats_update(&ife->tcf_bstats, skb); |
| 805 | − ife->tcf_tm.lastuse = jiffies; | |
| 805 | + tcf_lastuse_update(&ife->tcf_tm); | |
| 806 | 806 | ife->tcf_qstats.drops++; |
| 807 | 807 | spin_unlock(&ife->tcf_lock); |
| 808 | 808 | |
| @@ -212,7 +212,7 @@ static int tcf_ipt(struct sk_buff *skb, const struct tc_action *a, · 211 unmodified lines | ||
| 212 | 212 | |
| 213 | 213 | spin_lock(&ipt->tcf_lock); |
| 214 | 214 | |
| 215 | − ipt->tcf_tm.lastuse = jiffies; | |
| 215 | + tcf_lastuse_update(&ipt->tcf_tm); | |
| 216 | 216 | bstats_update(&ipt->tcf_bstats, skb); |
| 217 | 217 | |
| 218 | 218 | /* yes, we have to worry about both in and out dev |
| @@ -157,7 +157,6 @@ static int tcf_mirred(struct sk_buff *skb, const struct tc_action *a, · 156 unmodified lines | ||
| 157 | 157 | u32 at; |
| 158 | 158 | |
| 159 | 159 | tcf_lastuse_update(&m->tcf_tm); |
| 160 | − | |
| 161 | 160 | bstats_cpu_update(this_cpu_ptr(m->common.cpu_bstats), skb); |
| 162 | 161 | |
| 163 | 162 | rcu_read_lock(); |
| @@ -103,7 +103,7 @@ static int tcf_nat(struct sk_buff *skb, const struct tc_action *a, · 102 unmodified lines | ||
| 103 | 103 | |
| 104 | 104 | spin_lock(&p->tcf_lock); |
| 105 | 105 | |
| 106 | − p->tcf_tm.lastuse = jiffies; | |
| 106 | + tcf_lastuse_update(&p->tcf_tm); | |
| 107 | 107 | old_addr = p->old_addr; |
| 108 | 108 | new_addr = p->new_addr; |
| 109 | 109 | mask = p->mask; |
| @@ -121,7 +121,7 @@ static int tcf_pedit(struct sk_buff *skb, const struct tc_action *a, · 120 unmodified lines | ||
| 121 | 121 | |
| 122 | 122 | spin_lock(&p->tcf_lock); |
| 123 | 123 | |
| 124 | − p->tcf_tm.lastuse = jiffies; | |
| 124 | + tcf_lastuse_update(&p->tcf_tm); | |
| 125 | 125 | |
| 126 | 126 | if (p->tcfp_nkeys > 0) { |
| 127 | 127 | struct tc_pedit_key *tkey = p->tcfp_keys; |
| @@ -35,7 +35,7 @@ static int tcf_simp(struct sk_buff *skb, const struct tc_action *a, · 34 unmodified lines | ||
| 35 | 35 | struct tcf_defact *d = a->priv; |
| 36 | 36 | |
| 37 | 37 | spin_lock(&d->tcf_lock); |
| 38 | − d->tcf_tm.lastuse = jiffies; | |
| 38 | + tcf_lastuse_update(&d->tcf_tm); | |
| 39 | 39 | bstats_update(&d->tcf_bstats, skb); |
| 40 | 40 | |
| 41 | 41 | /* print policy string followed by _ then packet count |
| @@ -37,7 +37,7 @@ static int tcf_skbedit(struct sk_buff *skb, const struct tc_action *a, · 36 unmodified lines | ||
| 37 | 37 | struct tcf_skbedit *d = a->priv; |
| 38 | 38 | |
| 39 | 39 | spin_lock(&d->tcf_lock); |
| 40 | − d->tcf_tm.lastuse = jiffies; | |
| 40 | + tcf_lastuse_update(&d->tcf_tm); | |
| 41 | 41 | bstats_update(&d->tcf_bstats, skb); |
| 42 | 42 | |
| 43 | 43 | if (d->flags & SKBEDIT_F_PRIORITY) |
| @@ -31,7 +31,7 @@ static int tcf_vlan(struct sk_buff *skb, const struct tc_action *a, · 30 unmodified lines | ||
| 31 | 31 | int err; |
| 32 | 32 | |
| 33 | 33 | spin_lock(&v->tcf_lock); |
| 34 | − v->tcf_tm.lastuse = jiffies; | |
| 34 | + tcf_lastuse_update(&v->tcf_tm); | |
| 35 | 35 | bstats_update(&v->tcf_bstats, skb); |
| 36 | 36 | action = v->tcf_action; |
| 37 | 37 | |