summaryrefslogtreecommitdiffstats
path: root/br-nf-bds/linux/include/linux/skbuff.h
diff options
context:
space:
mode:
Diffstat (limited to 'br-nf-bds/linux/include/linux/skbuff.h')
-rw-r--r--br-nf-bds/linux/include/linux/skbuff.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/br-nf-bds/linux/include/linux/skbuff.h b/br-nf-bds/linux/include/linux/skbuff.h
index 257b586..4bc7c3f 100644
--- a/br-nf-bds/linux/include/linux/skbuff.h
+++ b/br-nf-bds/linux/include/linux/skbuff.h
@@ -135,8 +135,8 @@ struct sk_buff {
struct sock *sk; /* Socket we are owned by */
struct timeval stamp; /* Time we arrived */
struct net_device *dev; /* Device we arrived on/are leaving by */
- struct net_device *physindev; /* Physical device we arrived on */
- struct net_device *physoutdev; /* Physical device we will leave by */
+ struct net_device *physindev; /* Physical device we arrived on */
+ struct net_device *physoutdev; /* Physical device we will leave by */
/* Transport layer header */
union
@@ -590,7 +590,7 @@ static inline struct sk_buff *__skb_dequeue(struct sk_buff_head *list)
static inline struct sk_buff *skb_dequeue(struct sk_buff_head *list)
{
- long flags;
+ unsigned long flags;
struct sk_buff *result;
spin_lock_irqsave(&list->lock, flags);
@@ -739,7 +739,7 @@ static inline struct sk_buff *__skb_dequeue_tail(struct sk_buff_head *list)
static inline struct sk_buff *skb_dequeue_tail(struct sk_buff_head *list)
{
- long flags;
+ unsigned long flags;
struct sk_buff *result;
spin_lock_irqsave(&list->lock, flags);
@@ -758,9 +758,9 @@ static inline int skb_headlen(const struct sk_buff *skb)
return skb->len - skb->data_len;
}
-#define SKB_PAGE_ASSERT(skb) do { if (skb_shinfo(skb)->nr_frags) BUG(); } while (0)
-#define SKB_FRAG_ASSERT(skb) do { if (skb_shinfo(skb)->frag_list) BUG(); } while (0)
-#define SKB_LINEAR_ASSERT(skb) do { if (skb_is_nonlinear(skb)) BUG(); } while (0)
+#define SKB_PAGE_ASSERT(skb) do { if (skb_shinfo(skb)->nr_frags) out_of_line_bug(); } while (0)
+#define SKB_FRAG_ASSERT(skb) do { if (skb_shinfo(skb)->frag_list) out_of_line_bug(); } while (0)
+#define SKB_LINEAR_ASSERT(skb) do { if (skb_is_nonlinear(skb)) out_of_line_bug(); } while (0)
/*
* Add data to an sk_buff
@@ -828,7 +828,7 @@ static inline char *__skb_pull(struct sk_buff *skb, unsigned int len)
{
skb->len-=len;
if (skb->len < skb->data_len)
- BUG();
+ out_of_line_bug();
return skb->data+=len;
}
@@ -1096,7 +1096,7 @@ static inline void *kmap_skb_frag(const skb_frag_t *frag)
{
#ifdef CONFIG_HIGHMEM
if (in_irq())
- BUG();
+ out_of_line_bug();
local_bh_disable();
#endif