phonet: Use frag list abstraction interfaces.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
343a99724e
commit
5c313e9a77
2 changed files with 4 additions and 4 deletions
|
@ -115,10 +115,10 @@ static int gprs_recv(struct gprs_dev *gp, struct sk_buff *skb)
|
|||
rskb->truesize += rskb->len;
|
||||
|
||||
/* Avoid nested fragments */
|
||||
for (fs = skb_shinfo(skb)->frag_list; fs; fs = fs->next)
|
||||
skb_walk_frags(skb, fs)
|
||||
flen += fs->len;
|
||||
skb->next = skb_shinfo(skb)->frag_list;
|
||||
skb_shinfo(skb)->frag_list = NULL;
|
||||
skb_frag_list_init(skb);
|
||||
skb->len -= flen;
|
||||
skb->data_len -= flen;
|
||||
skb->truesize -= flen;
|
||||
|
|
|
@ -940,10 +940,10 @@ int pep_write(struct sock *sk, struct sk_buff *skb)
|
|||
rskb->truesize += rskb->len;
|
||||
|
||||
/* Avoid nested fragments */
|
||||
for (fs = skb_shinfo(skb)->frag_list; fs; fs = fs->next)
|
||||
skb_walk_frags(skb, fs)
|
||||
flen += fs->len;
|
||||
skb->next = skb_shinfo(skb)->frag_list;
|
||||
skb_shinfo(skb)->frag_list = NULL;
|
||||
skb_frag_list_init(skb);
|
||||
skb->len -= flen;
|
||||
skb->data_len -= flen;
|
||||
skb->truesize -= flen;
|
||||
|
|
Loading…
Reference in a new issue