inet_fragment.c (48d60056387c37a17a46feda48613587a90535e5) | inet_fragment.c (c95477090a2ace6d241c184adc3fbfcab9c61ceb) |
---|---|
1/* 2 * inet fragments management 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 * --- 122 unchanged lines hidden (view full) --- 131 frag_kfree_skb(f, fp, work); 132 fp = xp; 133 } 134 135 if (work) 136 *work -= f->qsize; 137 atomic_sub(f->qsize, &f->mem); 138 | 1/* 2 * inet fragments management 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 * --- 122 unchanged lines hidden (view full) --- 131 frag_kfree_skb(f, fp, work); 132 fp = xp; 133 } 134 135 if (work) 136 *work -= f->qsize; 137 atomic_sub(f->qsize, &f->mem); 138 |
139 f->destructor(q); | 139 if (f->destructor) 140 f->destructor(q); 141 kfree(q); |
140 141} 142EXPORT_SYMBOL(inet_frag_destroy); 143 144int inet_frag_evictor(struct inet_frags *f) 145{ 146 struct inet_frag_queue *q; 147 int work, evicted = 0; --- 112 unchanged lines hidden --- | 142 143} 144EXPORT_SYMBOL(inet_frag_destroy); 145 146int inet_frag_evictor(struct inet_frags *f) 147{ 148 struct inet_frag_queue *q; 149 int work, evicted = 0; --- 112 unchanged lines hidden --- |