aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/net/sctp/sctp.h27
1 files changed, 4 insertions, 23 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h
index 610a8c8738fa..a3353f45ef94 100644
--- a/include/net/sctp/sctp.h
+++ b/include/net/sctp/sctp.h
@@ -170,25 +170,6 @@ extern struct kmem_cache *sctp_bucket_cachep __read_mostly;
170 * Section: Macros, externs, and inlines 170 * Section: Macros, externs, and inlines
171 */ 171 */
172 172
173/* spin lock wrappers. */
174#define sctp_spin_lock_irqsave(lock, flags) spin_lock_irqsave(lock, flags)
175#define sctp_spin_unlock_irqrestore(lock, flags) \
176 spin_unlock_irqrestore(lock, flags)
177#define sctp_local_bh_disable() local_bh_disable()
178#define sctp_local_bh_enable() local_bh_enable()
179#define sctp_spin_lock(lock) spin_lock(lock)
180#define sctp_spin_unlock(lock) spin_unlock(lock)
181#define sctp_write_lock(lock) write_lock(lock)
182#define sctp_write_unlock(lock) write_unlock(lock)
183#define sctp_read_lock(lock) read_lock(lock)
184#define sctp_read_unlock(lock) read_unlock(lock)
185
186/* sock lock wrappers. */
187#define sctp_lock_sock(sk) lock_sock(sk)
188#define sctp_release_sock(sk) release_sock(sk)
189#define sctp_bh_lock_sock(sk) bh_lock_sock(sk)
190#define sctp_bh_unlock_sock(sk) bh_unlock_sock(sk)
191
192/* SCTP SNMP MIB stats handlers */ 173/* SCTP SNMP MIB stats handlers */
193#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)
194#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)
@@ -353,13 +334,13 @@ static inline void sctp_skb_list_tail(struct sk_buff_head *list,
353{ 334{
354 unsigned long flags; 335 unsigned long flags;
355 336
356 sctp_spin_lock_irqsave(&head->lock, flags); 337 spin_lock_irqsave(&head->lock, flags);
357 sctp_spin_lock(&list->lock); 338 spin_lock(&list->lock);
358 339
359 skb_queue_splice_tail_init(list, head); 340 skb_queue_splice_tail_init(list, head);
360 341
361 sctp_spin_unlock(&list->lock); 342 spin_unlock(&list->lock);
362 sctp_spin_unlock_irqrestore(&head->lock, flags); 343 spin_unlock_irqrestore(&head->lock, flags);
363} 344}
364 345
365/** 346/**