Commit fd3f8c4c authored by Jianjun Kong's avatar Jianjun Kong Committed by David S. Miller

net: clean up net/ipv4/ip_fragment.c tcp_timer.c ip_input.c

Signed-off-by: default avatarJianjun Kong <jianjun@zeuux.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c354e124
...@@ -56,7 +56,7 @@ struct ipfrag_skb_cb ...@@ -56,7 +56,7 @@ struct ipfrag_skb_cb
int offset; int offset;
}; };
#define FRAG_CB(skb) ((struct ipfrag_skb_cb*)((skb)->cb)) #define FRAG_CB(skb) ((struct ipfrag_skb_cb *)((skb)->cb))
/* Describe an entry in the "incomplete datagrams" queue. */ /* Describe an entry in the "incomplete datagrams" queue. */
struct ipq { struct ipq {
......
...@@ -340,9 +340,9 @@ static int ip_rcv_finish(struct sk_buff *skb) ...@@ -340,9 +340,9 @@ static int ip_rcv_finish(struct sk_buff *skb)
struct ip_rt_acct *st = per_cpu_ptr(ip_rt_acct, smp_processor_id()); struct ip_rt_acct *st = per_cpu_ptr(ip_rt_acct, smp_processor_id());
u32 idx = skb->dst->tclassid; u32 idx = skb->dst->tclassid;
st[idx&0xFF].o_packets++; st[idx&0xFF].o_packets++;
st[idx&0xFF].o_bytes+=skb->len; st[idx&0xFF].o_bytes += skb->len;
st[(idx>>16)&0xFF].i_packets++; st[(idx>>16)&0xFF].i_packets++;
st[(idx>>16)&0xFF].i_bytes+=skb->len; st[(idx>>16)&0xFF].i_bytes += skb->len;
} }
#endif #endif
......
...@@ -171,7 +171,7 @@ static int tcp_write_timeout(struct sock *sk) ...@@ -171,7 +171,7 @@ static int tcp_write_timeout(struct sock *sk)
static void tcp_delack_timer(unsigned long data) static void tcp_delack_timer(unsigned long data)
{ {
struct sock *sk = (struct sock*)data; struct sock *sk = (struct sock *)data;
struct tcp_sock *tp = tcp_sk(sk); struct tcp_sock *tp = tcp_sk(sk);
struct inet_connection_sock *icsk = inet_csk(sk); struct inet_connection_sock *icsk = inet_csk(sk);
...@@ -396,7 +396,7 @@ out:; ...@@ -396,7 +396,7 @@ out:;
static void tcp_write_timer(unsigned long data) static void tcp_write_timer(unsigned long data)
{ {
struct sock *sk = (struct sock*)data; struct sock *sk = (struct sock *)data;
struct inet_connection_sock *icsk = inet_csk(sk); struct inet_connection_sock *icsk = inet_csk(sk);
int event; int event;
......
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