act_skbedit.c (b409074e6693bcdaa7abbee2a035f22a9eabda53) | act_skbedit.c (4e8ddd7f1758ca4ddd0c1f7cf3e66fce736241d2) |
---|---|
1/* 2 * Copyright (c) 2008, Intel Corporation. 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms and conditions of the GNU General Public License, 6 * version 2, as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope it will be useful, but WITHOUT --- 158 unchanged lines hidden (view full) --- 167 &act_skbedit_ops, bind, false); 168 if (ret) 169 return ret; 170 171 d = to_skbedit(*a); 172 ret = ACT_P_CREATED; 173 } else { 174 d = to_skbedit(*a); | 1/* 2 * Copyright (c) 2008, Intel Corporation. 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms and conditions of the GNU General Public License, 6 * version 2, as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope it will be useful, but WITHOUT --- 158 unchanged lines hidden (view full) --- 167 &act_skbedit_ops, bind, false); 168 if (ret) 169 return ret; 170 171 d = to_skbedit(*a); 172 ret = ACT_P_CREATED; 173 } else { 174 d = to_skbedit(*a); |
175 tcf_idr_release(*a, bind); 176 if (!ovr) | 175 if (!ovr) { 176 tcf_idr_release(*a, bind); |
177 return -EEXIST; | 177 return -EEXIST; |
178 } |
|
178 } 179 180 spin_lock_bh(&d->tcf_lock); 181 182 d->flags = flags; 183 if (flags & SKBEDIT_F_PRIORITY) 184 d->priority = *priority; 185 if (flags & SKBEDIT_F_QUEUE_MAPPING) --- 139 unchanged lines hidden --- | 179 } 180 181 spin_lock_bh(&d->tcf_lock); 182 183 d->flags = flags; 184 if (flags & SKBEDIT_F_PRIORITY) 185 d->priority = *priority; 186 if (flags & SKBEDIT_F_QUEUE_MAPPING) --- 139 unchanged lines hidden --- |