act_gact.c (b409074e6693bcdaa7abbee2a035f22a9eabda53) | act_gact.c (4e8ddd7f1758ca4ddd0c1f7cf3e66fce736241d2) |
---|---|
1/* 2 * net/sched/act_gact.c Generic actions 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 * --- 86 unchanged lines hidden (view full) --- 95 ret = tcf_idr_create(tn, parm->index, est, a, 96 &act_gact_ops, bind, true); 97 if (ret) 98 return ret; 99 ret = ACT_P_CREATED; 100 } else { 101 if (bind)/* dont override defaults */ 102 return 0; | 1/* 2 * net/sched/act_gact.c Generic actions 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 * --- 86 unchanged lines hidden (view full) --- 95 ret = tcf_idr_create(tn, parm->index, est, a, 96 &act_gact_ops, bind, true); 97 if (ret) 98 return ret; 99 ret = ACT_P_CREATED; 100 } else { 101 if (bind)/* dont override defaults */ 102 return 0; |
103 tcf_idr_release(*a, bind); 104 if (!ovr) | 103 if (!ovr) { 104 tcf_idr_release(*a, bind); |
105 return -EEXIST; | 105 return -EEXIST; |
106 } |
|
106 } 107 108 gact = to_gact(*a); 109 110 ASSERT_RTNL(); 111 gact->tcf_action = parm->action; 112#ifdef CONFIG_GACT_PROB 113 if (p_parm) { --- 183 unchanged lines hidden --- | 107 } 108 109 gact = to_gact(*a); 110 111 ASSERT_RTNL(); 112 gact->tcf_action = parm->action; 113#ifdef CONFIG_GACT_PROB 114 if (p_parm) { --- 183 unchanged lines hidden --- |