aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-11 14:38:13 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-11 14:38:13 -0500
commitcb18eccff48ef3986d1072964590bce6fec705fb (patch)
tree777fb1d15e0281341e1e02c9803d989538d346f2 /net/lapb/lapb_subr.c
parentc827ba4cb49a30ce581201fd0ba2be77cde412c7 (diff)
parent5ef213f6842277ee1df5659f59fac0ffc9beb411 (diff)
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (45 commits) [IPV4]: Restore multipath routing after rt_next changes. [XFRM] IPV6: Fix outbound RO transformation which is broken by IPsec tunnel patch. [NET]: Reorder fields of struct dst_entry [DECNET]: Convert decnet route to use the new dst_entry 'next' pointer [IPV6]: Convert ipv6 route to use the new dst_entry 'next' pointer [IPV4]: Convert ipv4 route to use the new dst_entry 'next' pointer [NET]: Introduce union in struct dst_entry to hold 'next' pointer [DECNET]: fix misannotation of linkinfo_dn [DECNET]: FRA_{DST,SRC} are le16 for decnet [UDP]: UDP can use sk_hash to speedup lookups [NET]: Fix whitespace errors. [NET] XFRM: Fix whitespace errors. [NET] X25: Fix whitespace errors. [NET] WANROUTER: Fix whitespace errors. [NET] UNIX: Fix whitespace errors. [NET] TIPC: Fix whitespace errors. [NET] SUNRPC: Fix whitespace errors. [NET] SCTP: Fix whitespace errors. [NET] SCHED: Fix whitespace errors. [NET] RXRPC: Fix whitespace errors. ...
Diffstat (limited to 'net/lapb/lapb_subr.c')
-rw-r--r--net/lapb/lapb_subr.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/net/lapb/lapb_subr.c b/net/lapb/lapb_subr.c
index 8b5eefd70f0..b8739cf9156 100644
--- a/net/lapb/lapb_subr.c
+++ b/net/lapb/lapb_subr.c
@@ -59,7 +59,7 @@ void lapb_frames_acked(struct lapb_cb *lapb, unsigned short nr)
59 */ 59 */
60 if (lapb->va != nr) 60 if (lapb->va != nr)
61 while (skb_peek(&lapb->ack_queue) && lapb->va != nr) { 61 while (skb_peek(&lapb->ack_queue) && lapb->va != nr) {
62 skb = skb_dequeue(&lapb->ack_queue); 62 skb = skb_dequeue(&lapb->ack_queue);
63 kfree_skb(skb); 63 kfree_skb(skb);
64 lapb->va = (lapb->va + 1) % modulus; 64 lapb->va = (lapb->va + 1) % modulus;
65 } 65 }
@@ -67,7 +67,7 @@ void lapb_frames_acked(struct lapb_cb *lapb, unsigned short nr)
67 67
68void lapb_requeue_frames(struct lapb_cb *lapb) 68void lapb_requeue_frames(struct lapb_cb *lapb)
69{ 69{
70 struct sk_buff *skb, *skb_prev = NULL; 70 struct sk_buff *skb, *skb_prev = NULL;
71 71
72 /* 72 /*
73 * Requeue all the un-ack-ed frames on the output queue to be picked 73 * Requeue all the un-ack-ed frames on the output queue to be picked
@@ -91,7 +91,7 @@ int lapb_validate_nr(struct lapb_cb *lapb, unsigned short nr)
91{ 91{
92 unsigned short vc = lapb->va; 92 unsigned short vc = lapb->va;
93 int modulus; 93 int modulus;
94 94
95 modulus = (lapb->mode & LAPB_EXTENDED) ? LAPB_EMODULUS : LAPB_SMODULUS; 95 modulus = (lapb->mode & LAPB_EXTENDED) ? LAPB_EMODULUS : LAPB_SMODULUS;
96 96
97 while (vc != lapb->vs) { 97 while (vc != lapb->vs) {
@@ -99,7 +99,7 @@ int lapb_validate_nr(struct lapb_cb *lapb, unsigned short nr)
99 return 1; 99 return 1;
100 vc = (vc + 1) % modulus; 100 vc = (vc + 1) % modulus;
101 } 101 }
102 102
103 return nr == lapb->vs; 103 return nr == lapb->vs;
104} 104}
105 105
@@ -149,7 +149,7 @@ int lapb_decode(struct lapb_cb *lapb, struct sk_buff *skb,
149 frame->cr = LAPB_RESPONSE; 149 frame->cr = LAPB_RESPONSE;
150 } 150 }
151 } 151 }
152 152
153 skb_pull(skb, 1); 153 skb_pull(skb, 1);
154 154
155 if (lapb->mode & LAPB_EXTENDED) { 155 if (lapb->mode & LAPB_EXTENDED) {
@@ -220,9 +220,9 @@ int lapb_decode(struct lapb_cb *lapb, struct sk_buff *skb,
220 return 0; 220 return 0;
221} 221}
222 222
223/* 223/*
224 * This routine is called when the HDLC layer internally generates a 224 * This routine is called when the HDLC layer internally generates a
225 * command or response for the remote machine ( eg. RR, UA etc. ). 225 * command or response for the remote machine ( eg. RR, UA etc. ).
226 * Only supervisory or unnumbered frames are processed, FRMRs are handled 226 * Only supervisory or unnumbered frames are processed, FRMRs are handled
227 * by lapb_transmit_frmr below. 227 * by lapb_transmit_frmr below.
228 */ 228 */
@@ -259,7 +259,7 @@ void lapb_send_control(struct lapb_cb *lapb, int frametype,
259 lapb_transmit_buffer(lapb, skb, type); 259 lapb_transmit_buffer(lapb, skb, type);
260} 260}
261 261
262/* 262/*
263 * This routine generates FRMRs based on information previously stored in 263 * This routine generates FRMRs based on information previously stored in
264 * the LAPB control block. 264 * the LAPB control block.
265 */ 265 */