netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Dumazet <dada1@cosmosbay.com>
To: Jianjun Kong <jianjun@zeuux.org>
Cc: "David S. Miller" <davem@davemloft.net>, netdev <netdev@vger.kernel.org>
Subject: Re: [PATCH] nets: clean up net/ipv4/*
Date: Sun, 02 Nov 2008 19:00:51 +0100	[thread overview]
Message-ID: <490DEAD3.3030202@cosmosbay.com> (raw)
In-Reply-To: <20081102074446.GA12140@ubuntu>

Jianjun Kong a écrit :
> clean up net/ipv4/* about code style.
> 
> Signed-off-by: Jianjun Kong <jianjun@zeuux.org>
> 
> ---
>  net/ipv4/ah4.c                  |    4 +-
>  net/ipv4/arp.c                  |   18 +++---
>  net/ipv4/devinet.c              |   10 ++--
>  net/ipv4/esp4.c                 |    4 +-
>  net/ipv4/fib_frontend.c         |   10 ++--
>  net/ipv4/fib_hash.c             |   12 ++--
>  net/ipv4/fib_semantics.c        |    8 +-
>  net/ipv4/igmp.c                 |   46 +++++++-------
>  net/ipv4/inet_connection_sock.c |    2 +-
>  net/ipv4/inetpeer.c             |    2 +-
>  net/ipv4/ip_fragment.c          |    2 +-
>  net/ipv4/ip_gre.c               |   14 ++--
>  net/ipv4/ip_input.c             |    4 +-
>  net/ipv4/ip_output.c            |    6 +-
>  net/ipv4/ip_sockglue.c          |   32 +++++-----
>  net/ipv4/ipip.c                 |    2 +-
>  net/ipv4/ipmr.c                 |  130 +++++++++++++++++++-------------------
>  net/ipv4/raw.c                  |    8 +-
>  net/ipv4/route.c                |    6 +-
>  net/ipv4/tcp.c                  |    6 +-
>  net/ipv4/tcp_ipv4.c             |   16 +++---
>  net/ipv4/tcp_minisocks.c        |    2 +-
>  net/ipv4/tcp_output.c           |    8 +-
>  net/ipv4/tcp_timer.c            |    4 +-
>  net/ipv4/tcp_yeah.c             |    4 +-
>  net/ipv4/udp.c                  |   26 ++++----
>  net/ipv4/xfrm4_policy.c         |    2 +-
>  27 files changed, 194 insertions(+), 194 deletions(-)
> 

Hello Jianun

For this kind of cleanup, you should probably base it on net-next-2.6

And on this tree, net/ipv4/udp.c already was changed, your patch wont apply.

Also, its hard to review such large patch, that easily can contain an error.

I am not sure you have to CC linux-kernel, I removed it from the list.

Thank you

> diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
> index 2095abc..45a6c7c 100644
> --- a/net/ipv4/udp.c
> +++ b/net/ipv4/udp.c
> @@ -230,22 +230,22 @@ static struct sock *__udp4_lib_lookup(struct net *net, __be32 saddr,
>  			if (inet->rcv_saddr) {
>  				if (inet->rcv_saddr != daddr)
>  					continue;
> -				score+=2;
> +				score += 2;
>  			}
>  			if (inet->daddr) {
>  				if (inet->daddr != saddr)
>  					continue;
> -				score+=2;
> +				score += 2;
>  			}
>  			if (inet->dport) {
>  				if (inet->dport != sport)
>  					continue;
> -				score+=2;
> +				score += 2;
>  			}
>  			if (sk->sk_bound_dev_if) {
>  				if (sk->sk_bound_dev_if != dif)
>  					continue;
> -				score+=2;
> +				score += 2;
>  			}
>  			if (score == 9) {
>  				result = sk;



  reply	other threads:[~2008-11-02 18:01 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-02  7:44 [PATCH] nets: clean up net/ipv4/* Jianjun Kong
2008-11-02 18:00 ` Eric Dumazet [this message]
2008-11-03  8:19   ` Jianjun Kong
2008-11-03  8:19   ` [PATCH 1/6] nets: clean up net/ipv4/ah4.c esp4.c fib_semantics.c inet_connection_sock.c inetpeer.c ip_output.c Jianjun Kong
2008-11-03  8:23     ` David Miller
2008-11-03  8:19   ` [PATCH 2/6] nets: clean up net/ipv4/ipip.c raw.c tcp.c tcp_minisocks.c tcp_yeah.c xfrm4_policy.c Jianjun Kong
2008-11-03  8:24     ` David Miller
2008-11-03  8:19   ` [PATCH 3/6] nets: clean up net/ipv4/fib_frontend.c fib_hash.c ip_gre.c Jianjun Kong
2008-11-03  8:25     ` David Miller
2008-11-03  8:19   ` [PATCH 4/6] nets: clean up net/ipv4/igmp.c Jianjun Kong
2008-11-03  8:26     ` David Miller
2008-11-03  8:19   ` [PATCH 5/6] nets: clean up net/ipv4/ip_sockglue.c tcp_output.c Jianjun Kong
2008-11-03  8:27     ` David Miller
2008-11-03  8:20   ` [PATCH 6/6] nets: clean up net/ipv4/ipmr.c Jianjun Kong
2008-11-03  8:28     ` David Miller
2008-11-03 10:41       ` [PATCH] nets: rest patchs of cleaning up net/ipv4/* Jianjun Kong
2008-11-03 10:41       ` [PATCH 1/4] nets: clean up net/ipv4/ip_fragment.c tcp_timer.c ip_input.c Jianjun Kong
2008-11-03 10:47         ` David Miller
2008-11-03 10:41       ` [PATCH 2/4] nets: clean up net/ipv4/pararp.c Jianjun Kong
2008-11-03 10:48         ` David Miller
2008-11-03 10:41       ` [PATCH 3/4] nets: clean up net/ipv4/devinet.c Jianjun Kong
2008-11-03 10:48         ` David Miller
2008-11-03 10:41       ` [PATCH 4/4] nets: clean up net/ipv4/tcp_ipv4.c Jianjun Kong
2008-11-03 10:50         ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=490DEAD3.3030202@cosmosbay.com \
    --to=dada1@cosmosbay.com \
    --cc=davem@davemloft.net \
    --cc=jianjun@zeuux.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).