act_police.c (0ce49a3945474fc942ec37c0c0efece60f592f80) | act_police.c (e9bef55d3d062ee7a78fde2913ec87ca9305a1e0) |
---|---|
1/* 2 * net/sched/police.c Input police filter. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 2 of the License, or (at your option) any later version. 8 * --- 7 unchanged lines hidden (view full) --- 16#include <linux/string.h> 17#include <linux/errno.h> 18#include <linux/skbuff.h> 19#include <linux/rtnetlink.h> 20#include <linux/init.h> 21#include <net/act_api.h> 22#include <net/netlink.h> 23 | 1/* 2 * net/sched/police.c Input police filter. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 2 of the License, or (at your option) any later version. 8 * --- 7 unchanged lines hidden (view full) --- 16#include <linux/string.h> 17#include <linux/errno.h> 18#include <linux/skbuff.h> 19#include <linux/rtnetlink.h> 20#include <linux/init.h> 21#include <net/act_api.h> 22#include <net/netlink.h> 23 |
24#define L2T(p,L) ((p)->tcfp_R_tab->data[(L)>>(p)->tcfp_R_tab->rate.cell_log]) 25#define L2T_P(p,L) ((p)->tcfp_P_tab->data[(L)>>(p)->tcfp_P_tab->rate.cell_log]) | 24#define L2T(p,L) qdisc_l2t((p)->tcfp_R_tab, L) 25#define L2T_P(p,L) qdisc_l2t((p)->tcfp_P_tab, L) |
26 27#define POL_TAB_MASK 15 28static struct tcf_common *tcf_police_ht[POL_TAB_MASK + 1]; 29static u32 police_idx_gen; 30static DEFINE_RWLOCK(police_lock); 31 32static struct tcf_hashinfo police_hash_info = { 33 .htab = tcf_police_ht, --- 346 unchanged lines hidden --- | 26 27#define POL_TAB_MASK 15 28static struct tcf_common *tcf_police_ht[POL_TAB_MASK + 1]; 29static u32 police_idx_gen; 30static DEFINE_RWLOCK(police_lock); 31 32static struct tcf_hashinfo police_hash_info = { 33 .htab = tcf_police_ht, --- 346 unchanged lines hidden --- |