diff options
Diffstat (limited to 'include/net/sctp/sctp.h')
-rw-r--r-- | include/net/sctp/sctp.h | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index c5fe80697f8d..a3353f45ef94 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h | |||
@@ -21,9 +21,8 @@ | |||
21 | * See the GNU General Public License for more details. | 21 | * See the GNU General Public License for more details. |
22 | * | 22 | * |
23 | * You should have received a copy of the GNU General Public License | 23 | * You should have received a copy of the GNU General Public License |
24 | * along with GNU CC; see the file COPYING. If not, write to | 24 | * along with GNU CC; see the file COPYING. If not, see |
25 | * the Free Software Foundation, 59 Temple Place - Suite 330, | 25 | * <http://www.gnu.org/licenses/>. |
26 | * Boston, MA 02111-1307, USA. | ||
27 | * | 26 | * |
28 | * Please send any bug reports or fixes you make to the | 27 | * Please send any bug reports or fixes you make to the |
29 | * email address(es): | 28 | * email address(es): |
@@ -171,25 +170,6 @@ extern struct kmem_cache *sctp_bucket_cachep __read_mostly; | |||
171 | * Section: Macros, externs, and inlines | 170 | * Section: Macros, externs, and inlines |
172 | */ | 171 | */ |
173 | 172 | ||
174 | /* spin lock wrappers. */ | ||
175 | #define sctp_spin_lock_irqsave(lock, flags) spin_lock_irqsave(lock, flags) | ||
176 | #define sctp_spin_unlock_irqrestore(lock, flags) \ | ||
177 | spin_unlock_irqrestore(lock, flags) | ||
178 | #define sctp_local_bh_disable() local_bh_disable() | ||
179 | #define sctp_local_bh_enable() local_bh_enable() | ||
180 | #define sctp_spin_lock(lock) spin_lock(lock) | ||
181 | #define sctp_spin_unlock(lock) spin_unlock(lock) | ||
182 | #define sctp_write_lock(lock) write_lock(lock) | ||
183 | #define sctp_write_unlock(lock) write_unlock(lock) | ||
184 | #define sctp_read_lock(lock) read_lock(lock) | ||
185 | #define sctp_read_unlock(lock) read_unlock(lock) | ||
186 | |||
187 | /* sock lock wrappers. */ | ||
188 | #define sctp_lock_sock(sk) lock_sock(sk) | ||
189 | #define sctp_release_sock(sk) release_sock(sk) | ||
190 | #define sctp_bh_lock_sock(sk) bh_lock_sock(sk) | ||
191 | #define sctp_bh_unlock_sock(sk) bh_unlock_sock(sk) | ||
192 | |||
193 | /* SCTP SNMP MIB stats handlers */ | 173 | /* SCTP SNMP MIB stats handlers */ |
194 | #define SCTP_INC_STATS(net, field) SNMP_INC_STATS((net)->sctp.sctp_statistics, field) | 174 | #define SCTP_INC_STATS(net, field) SNMP_INC_STATS((net)->sctp.sctp_statistics, field) |
195 | #define SCTP_INC_STATS_BH(net, field) SNMP_INC_STATS_BH((net)->sctp.sctp_statistics, field) | 175 | #define SCTP_INC_STATS_BH(net, field) SNMP_INC_STATS_BH((net)->sctp.sctp_statistics, field) |
@@ -354,13 +334,13 @@ static inline void sctp_skb_list_tail(struct sk_buff_head *list, | |||
354 | { | 334 | { |
355 | unsigned long flags; | 335 | unsigned long flags; |
356 | 336 | ||
357 | sctp_spin_lock_irqsave(&head->lock, flags); | 337 | spin_lock_irqsave(&head->lock, flags); |
358 | sctp_spin_lock(&list->lock); | 338 | spin_lock(&list->lock); |
359 | 339 | ||
360 | skb_queue_splice_tail_init(list, head); | 340 | skb_queue_splice_tail_init(list, head); |
361 | 341 | ||
362 | sctp_spin_unlock(&list->lock); | 342 | spin_unlock(&list->lock); |
363 | sctp_spin_unlock_irqrestore(&head->lock, flags); | 343 | spin_unlock_irqrestore(&head->lock, flags); |
364 | } | 344 | } |
365 | 345 | ||
366 | /** | 346 | /** |