From patchwork Sun Feb 10 10:52:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Pirko X-Patchwork-Id: 219483 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id AE2102C0099 for ; Sun, 10 Feb 2013 21:53:06 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754827Ab3BJKxE (ORCPT ); Sun, 10 Feb 2013 05:53:04 -0500 Received: from mail-ee0-f45.google.com ([74.125.83.45]:39562 "EHLO mail-ee0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754685Ab3BJKxD (ORCPT ); Sun, 10 Feb 2013 05:53:03 -0500 Received: by mail-ee0-f45.google.com with SMTP id b57so2697174eek.18 for ; Sun, 10 Feb 2013 02:53:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=IxI56t58R+gg0uht2wXp4AwXt+dDGgMWThqwWcneVVo=; b=YH3xKg9UAKwXCqJ/9HbB3MeLqOfYLZ1hj2AoligiTYQn+U/LXMTAXNnLsoXg7vdC/A w6U5cBVjSFLQufvK4sDpeiHxPwkMDDFU0lrt33LFFvTtnXL+2menArqYE8FeLB/zX9V5 5ld2ogTOlTq2yPh6ObKVig3it1Or29Co9GQ8QumVT9a3ItYnT5ojqVqiHDibpWOHMhQ7 Hn998/tvThgIf0flp1PqeO28IQqBbDvo/L9DSwDtiJWtdNh7JbWjoVi8DLZpu6rYMbsQ j80+PNDmfws5/7kAAuaDGYpi2Ld3LhYOqDKZ3W8nnvCzSvSqhUQaKrDSFgTBekTBEiDt LJwA== X-Received: by 10.14.5.12 with SMTP id 12mr37006578eek.36.1360493581989; Sun, 10 Feb 2013 02:53:01 -0800 (PST) Received: from localhost (sun-0.pirko.cz. [84.16.102.25]) by mx.google.com with ESMTPS id f6sm56635678eeo.7.2013.02.10.02.53.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 10 Feb 2013 02:53:01 -0800 (PST) From: Jiri Pirko To: netdev@vger.kernel.org Cc: davem@davemloft.net, edumazet@google.com, jhs@mojatatu.com, kuznet@ms2.inr.ac.ru, j.vimal@gmail.com Subject: [patch net-next v4 09/11] act_police: move struct tcf_police to act_police.c Date: Sun, 10 Feb 2013 11:52:17 +0100 Message-Id: <1360493539-14868-10-git-send-email-jiri@resnulli.us> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1360493539-14868-1-git-send-email-jiri@resnulli.us> References: <1360493539-14868-1-git-send-email-jiri@resnulli.us> X-Gm-Message-State: ALoCoQmoTiIYtmNpxAtfCJslVXCr3no4HasKBXkUvOhOA38d92dUWZe07DCFFpf3yMKXHXZuZSq+ Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org It's not used anywhere else, so move it. Signed-off-by: Jiri Pirko --- include/net/act_api.h | 15 --------------- net/sched/act_police.c | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/include/net/act_api.h b/include/net/act_api.h index 112c25c..06ef7e9 100644 --- a/include/net/act_api.h +++ b/include/net/act_api.h @@ -35,21 +35,6 @@ struct tcf_common { #define tcf_lock common.tcfc_lock #define tcf_rcu common.tcfc_rcu -struct tcf_police { - struct tcf_common common; - int tcfp_result; - u32 tcfp_ewma_rate; - u32 tcfp_burst; - u32 tcfp_mtu; - u32 tcfp_toks; - u32 tcfp_ptoks; - psched_time_t tcfp_t_c; - struct qdisc_rate_table *tcfp_R_tab; - struct qdisc_rate_table *tcfp_P_tab; -}; -#define to_police(pc) \ - container_of(pc, struct tcf_police, common) - struct tcf_hashinfo { struct tcf_common **htab; unsigned int hmask; diff --git a/net/sched/act_police.c b/net/sched/act_police.c index 8dbd695..378a649 100644 --- a/net/sched/act_police.c +++ b/net/sched/act_police.c @@ -22,6 +22,21 @@ #include #include +struct tcf_police { + struct tcf_common common; + int tcfp_result; + u32 tcfp_ewma_rate; + u32 tcfp_burst; + u32 tcfp_mtu; + u32 tcfp_toks; + u32 tcfp_ptoks; + psched_time_t tcfp_t_c; + struct qdisc_rate_table *tcfp_R_tab; + struct qdisc_rate_table *tcfp_P_tab; +}; +#define to_police(pc) \ + container_of(pc, struct tcf_police, common) + #define L2T(p, L) qdisc_l2t((p)->tcfp_R_tab, L) #define L2T_P(p, L) qdisc_l2t((p)->tcfp_P_tab, L)