diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2014-01-09 19:14:05 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-13 14:50:15 -0500 |
commit | 7eb8896df03d0f4a8b301cb177d7f31c0d70e112 (patch) | |
tree | c76752e5c9925171b4c91bbfcea516ededdc8e12 /net/sched/act_api.c | |
parent | a8701a6c7ae0142393d0fe87a1e7778bd04d1ac7 (diff) |
net_sched: act: remove struct tcf_act_hdr
It is not necessary at all.
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_api.c')
-rw-r--r-- | net/sched/act_api.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 178bf2eab117..35f89e9ce49c 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c | |||
@@ -556,9 +556,9 @@ int tcf_action_copy_stats(struct sk_buff *skb, struct tc_action *a, | |||
556 | { | 556 | { |
557 | int err = 0; | 557 | int err = 0; |
558 | struct gnet_dump d; | 558 | struct gnet_dump d; |
559 | struct tcf_act_hdr *h = a->priv; | 559 | struct tcf_common *p = a->priv; |
560 | 560 | ||
561 | if (h == NULL) | 561 | if (p == NULL) |
562 | goto errout; | 562 | goto errout; |
563 | 563 | ||
564 | /* compat_mode being true specifies a call that is supposed | 564 | /* compat_mode being true specifies a call that is supposed |
@@ -567,20 +567,20 @@ int tcf_action_copy_stats(struct sk_buff *skb, struct tc_action *a, | |||
567 | if (compat_mode) { | 567 | if (compat_mode) { |
568 | if (a->type == TCA_OLD_COMPAT) | 568 | if (a->type == TCA_OLD_COMPAT) |
569 | err = gnet_stats_start_copy_compat(skb, 0, | 569 | err = gnet_stats_start_copy_compat(skb, 0, |
570 | TCA_STATS, TCA_XSTATS, &h->tcf_lock, &d); | 570 | TCA_STATS, TCA_XSTATS, &p->tcfc_lock, &d); |
571 | else | 571 | else |
572 | return 0; | 572 | return 0; |
573 | } else | 573 | } else |
574 | err = gnet_stats_start_copy(skb, TCA_ACT_STATS, | 574 | err = gnet_stats_start_copy(skb, TCA_ACT_STATS, |
575 | &h->tcf_lock, &d); | 575 | &p->tcfc_lock, &d); |
576 | 576 | ||
577 | if (err < 0) | 577 | if (err < 0) |
578 | goto errout; | 578 | goto errout; |
579 | 579 | ||
580 | if (gnet_stats_copy_basic(&d, &h->tcf_bstats) < 0 || | 580 | if (gnet_stats_copy_basic(&d, &p->tcfc_bstats) < 0 || |
581 | gnet_stats_copy_rate_est(&d, &h->tcf_bstats, | 581 | gnet_stats_copy_rate_est(&d, &p->tcfc_bstats, |
582 | &h->tcf_rate_est) < 0 || | 582 | &p->tcfc_rate_est) < 0 || |
583 | gnet_stats_copy_queue(&d, &h->tcf_qstats) < 0) | 583 | gnet_stats_copy_queue(&d, &p->tcfc_qstats) < 0) |
584 | goto errout; | 584 | goto errout; |
585 | 585 | ||
586 | if (gnet_stats_finish_copy(&d) < 0) | 586 | if (gnet_stats_finish_copy(&d) < 0) |