act_pedit.c (d053cf0d771f6547cb0537759a9af63cf402908d) act_pedit.c (4b61d3e8d3daebbde7ec02d593f84248fdf8bec2)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * net/sched/act_pedit.c Generic packet editor
4 *
5 * Authors: Jamal Hadi Salim (2002-4)
6 */
7
8#include <linux/types.h>

--- 395 unchanged lines hidden (view full) ---

404bad:
405 p->tcf_qstats.overlimits++;
406done:
407 bstats_update(&p->tcf_bstats, skb);
408 spin_unlock(&p->tcf_lock);
409 return p->tcf_action;
410}
411
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * net/sched/act_pedit.c Generic packet editor
4 *
5 * Authors: Jamal Hadi Salim (2002-4)
6 */
7
8#include <linux/types.h>

--- 395 unchanged lines hidden (view full) ---

404bad:
405 p->tcf_qstats.overlimits++;
406done:
407 bstats_update(&p->tcf_bstats, skb);
408 spin_unlock(&p->tcf_lock);
409 return p->tcf_action;
410}
411
412static void tcf_pedit_stats_update(struct tc_action *a, u64 bytes, u32 packets,
413 u64 lastuse, bool hw)
412static void tcf_pedit_stats_update(struct tc_action *a, u64 bytes, u64 packets,
413 u64 drops, u64 lastuse, bool hw)
414{
415 struct tcf_pedit *d = to_pedit(a);
416 struct tcf_t *tm = &d->tcf_tm;
417
414{
415 struct tcf_pedit *d = to_pedit(a);
416 struct tcf_t *tm = &d->tcf_tm;
417
418 tcf_action_update_stats(a, bytes, packets, false, hw);
418 tcf_action_update_stats(a, bytes, packets, drops, hw);
419 tm->lastuse = max_t(u64, tm->lastuse, lastuse);
420}
421
422static int tcf_pedit_dump(struct sk_buff *skb, struct tc_action *a,
423 int bind, int ref)
424{
425 unsigned char *b = skb_tail_pointer(skb);
426 struct tcf_pedit *p = to_pedit(a);

--- 115 unchanged lines hidden ---
419 tm->lastuse = max_t(u64, tm->lastuse, lastuse);
420}
421
422static int tcf_pedit_dump(struct sk_buff *skb, struct tc_action *a,
423 int bind, int ref)
424{
425 unsigned char *b = skb_tail_pointer(skb);
426 struct tcf_pedit *p = to_pedit(a);

--- 115 unchanged lines hidden ---