diff options
author | David S. Miller <davem@davemloft.net> | 2009-06-09 03:21:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-09 03:24:06 -0400 |
commit | 5c313e9a7773ec4d7ac554e841fba583f7c63aba (patch) | |
tree | a58c024bee70231f06ecf0302654dfd97dccf639 /net/phonet | |
parent | 343a99724e4431d8618bea2eb7552e12c965425a (diff) |
phonet: Use frag list abstraction interfaces.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/phonet')
-rw-r--r-- | net/phonet/pep-gprs.c | 4 | ||||
-rw-r--r-- | net/phonet/pep.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/net/phonet/pep-gprs.c b/net/phonet/pep-gprs.c index 851f6a3f8ddd..480839dfc560 100644 --- a/net/phonet/pep-gprs.c +++ b/net/phonet/pep-gprs.c | |||
@@ -115,10 +115,10 @@ static int gprs_recv(struct gprs_dev *gp, struct sk_buff *skb) | |||
115 | rskb->truesize += rskb->len; | 115 | rskb->truesize += rskb->len; |
116 | 116 | ||
117 | /* Avoid nested fragments */ | 117 | /* Avoid nested fragments */ |
118 | for (fs = skb_shinfo(skb)->frag_list; fs; fs = fs->next) | 118 | skb_walk_frags(skb, fs) |
119 | flen += fs->len; | 119 | flen += fs->len; |
120 | skb->next = skb_shinfo(skb)->frag_list; | 120 | skb->next = skb_shinfo(skb)->frag_list; |
121 | skb_shinfo(skb)->frag_list = NULL; | 121 | skb_frag_list_init(skb); |
122 | skb->len -= flen; | 122 | skb->len -= flen; |
123 | skb->data_len -= flen; | 123 | skb->data_len -= flen; |
124 | skb->truesize -= flen; | 124 | skb->truesize -= flen; |
diff --git a/net/phonet/pep.c b/net/phonet/pep.c index 8ad2b5333881..eef833ea6d7b 100644 --- a/net/phonet/pep.c +++ b/net/phonet/pep.c | |||
@@ -940,10 +940,10 @@ int pep_write(struct sock *sk, struct sk_buff *skb) | |||
940 | rskb->truesize += rskb->len; | 940 | rskb->truesize += rskb->len; |
941 | 941 | ||
942 | /* Avoid nested fragments */ | 942 | /* Avoid nested fragments */ |
943 | for (fs = skb_shinfo(skb)->frag_list; fs; fs = fs->next) | 943 | skb_walk_frags(skb, fs) |
944 | flen += fs->len; | 944 | flen += fs->len; |
945 | skb->next = skb_shinfo(skb)->frag_list; | 945 | skb->next = skb_shinfo(skb)->frag_list; |
946 | skb_shinfo(skb)->frag_list = NULL; | 946 | skb_frag_list_init(skb); |
947 | skb->len -= flen; | 947 | skb->len -= flen; |
948 | skb->data_len -= flen; | 948 | skb->data_len -= flen; |
949 | skb->truesize -= flen; | 949 | skb->truesize -= flen; |