act_police.c (71bcb09a57894fa35591ce93dd972065eeecb63a) | act_police.c (c1b56878fb68e9c14070939ea4537ad4db79ffae) |
---|---|
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 * --- 168 unchanged lines hidden (view full) --- 177 if (bind) 178 police->tcf_bindcnt = 1; 179override: 180 if (parm->rate.rate) { 181 err = -ENOMEM; 182 R_tab = qdisc_get_rtab(&parm->rate, tb[TCA_POLICE_RATE]); 183 if (R_tab == NULL) 184 goto failure; | 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 * --- 168 unchanged lines hidden (view full) --- 177 if (bind) 178 police->tcf_bindcnt = 1; 179override: 180 if (parm->rate.rate) { 181 err = -ENOMEM; 182 R_tab = qdisc_get_rtab(&parm->rate, tb[TCA_POLICE_RATE]); 183 if (R_tab == NULL) 184 goto failure; |
185 186 if (!est && !gen_estimator_active(&police->tcf_rate_est)) { 187 err = -EINVAL; 188 goto failure; 189 } 190 |
|
185 if (parm->peakrate.rate) { 186 P_tab = qdisc_get_rtab(&parm->peakrate, 187 tb[TCA_POLICE_PEAKRATE]); 188 if (P_tab == NULL) 189 goto failure; 190 } 191 } 192 --- 199 unchanged lines hidden --- | 191 if (parm->peakrate.rate) { 192 P_tab = qdisc_get_rtab(&parm->peakrate, 193 tb[TCA_POLICE_PEAKRATE]); 194 if (P_tab == NULL) 195 goto failure; 196 } 197 } 198 --- 199 unchanged lines hidden --- |