Commit 5c313e9a authored by David S. Miller's avatar David S. Miller

phonet: Use frag list abstraction interfaces.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 343a9972
...@@ -115,10 +115,10 @@ static int gprs_recv(struct gprs_dev *gp, struct sk_buff *skb) ...@@ -115,10 +115,10 @@ static int gprs_recv(struct gprs_dev *gp, struct sk_buff *skb)
rskb->truesize += rskb->len; rskb->truesize += rskb->len;
/* Avoid nested fragments */ /* Avoid nested fragments */
for (fs = skb_shinfo(skb)->frag_list; fs; fs = fs->next) skb_walk_frags(skb, fs)
flen += fs->len; flen += fs->len;
skb->next = skb_shinfo(skb)->frag_list; skb->next = skb_shinfo(skb)->frag_list;
skb_shinfo(skb)->frag_list = NULL; skb_frag_list_init(skb);
skb->len -= flen; skb->len -= flen;
skb->data_len -= flen; skb->data_len -= flen;
skb->truesize -= flen; skb->truesize -= flen;
......
...@@ -940,10 +940,10 @@ int pep_write(struct sock *sk, struct sk_buff *skb) ...@@ -940,10 +940,10 @@ int pep_write(struct sock *sk, struct sk_buff *skb)
rskb->truesize += rskb->len; rskb->truesize += rskb->len;
/* Avoid nested fragments */ /* Avoid nested fragments */
for (fs = skb_shinfo(skb)->frag_list; fs; fs = fs->next) skb_walk_frags(skb, fs)
flen += fs->len; flen += fs->len;
skb->next = skb_shinfo(skb)->frag_list; skb->next = skb_shinfo(skb)->frag_list;
skb_shinfo(skb)->frag_list = NULL; skb_frag_list_init(skb);
skb->len -= flen; skb->len -= flen;
skb->data_len -= flen; skb->data_len -= flen;
skb->truesize -= flen; skb->truesize -= flen;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment