act_simple.c (b409074e6693bcdaa7abbee2a035f22a9eabda53) act_simple.c (4e8ddd7f1758ca4ddd0c1f7cf3e66fce736241d2)
1/*
2 * net/sched/act_simple.c Simple example of an action
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 *

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

122 tcf_idr_release(*a, bind);
123 return ret;
124 }
125 d->tcf_action = parm->action;
126 ret = ACT_P_CREATED;
127 } else {
128 d = to_defact(*a);
129
1/*
2 * net/sched/act_simple.c Simple example of an action
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 *

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

122 tcf_idr_release(*a, bind);
123 return ret;
124 }
125 d->tcf_action = parm->action;
126 ret = ACT_P_CREATED;
127 } else {
128 d = to_defact(*a);
129
130 tcf_idr_release(*a, bind);
131 if (!ovr)
130 if (!ovr) {
131 tcf_idr_release(*a, bind);
132 return -EEXIST;
132 return -EEXIST;
133 }
133
134 reset_policy(d, tb[TCA_DEF_DATA], parm);
135 }
136
137 if (ret == ACT_P_CREATED)
138 tcf_idr_insert(tn, *a);
139 return ret;
140}

--- 105 unchanged lines hidden ---
134
135 reset_policy(d, tb[TCA_DEF_DATA], parm);
136 }
137
138 if (ret == ACT_P_CREATED)
139 tcf_idr_insert(tn, *a);
140 return ret;
141}

--- 105 unchanged lines hidden ---