Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90674
b: refs/heads/master
c: f557285
h: refs/heads/master
v: v3
  • Loading branch information
Gerrit Renker authored and David S. Miller committed Apr 14, 2008
1 parent 9feaefe commit bc9d66f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7de6c033367ab86f39c7723392caf73325cbf286
refs/heads/master: f5572855ec492334d8c3ec0e0e86c31865d5cf07
16 changes: 8 additions & 8 deletions trunk/include/linux/skbuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,13 @@ static inline void __skb_queue_after(struct sk_buff_head *list,
extern void skb_append(struct sk_buff *old, struct sk_buff *newsk,
struct sk_buff_head *list);

static inline void __skb_queue_before(struct sk_buff_head *list,
struct sk_buff *next,
struct sk_buff *newsk)
{
__skb_insert(newsk, next->prev, next, list);
}

/**
* __skb_queue_head - queue a buffer at the list head
* @list: list to use
Expand Down Expand Up @@ -731,14 +738,7 @@ extern void skb_queue_tail(struct sk_buff_head *list, struct sk_buff *newsk);
static inline void __skb_queue_tail(struct sk_buff_head *list,
struct sk_buff *newsk)
{
struct sk_buff *prev, *next;

list->qlen++;
next = (struct sk_buff *)list;
prev = next->prev;
newsk->next = next;
newsk->prev = prev;
next->prev = prev->next = newsk;
__skb_queue_before(list, (struct sk_buff *)list, newsk);
}

/*
Expand Down

0 comments on commit bc9d66f

Please sign in to comment.