[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20071205090228.GA14659@gondor.apana.org.au>
Date: Wed, 5 Dec 2007 20:02:28 +1100
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Wang Chen <wangchen@...fujitsu.com>
Cc: "David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH 2/3] [UDP]: Restore missing inDatagrams increments
On Wed, Dec 05, 2007 at 04:39:48PM +0800, Wang Chen wrote:
> Herbert Xu said the following on 2007-12-5 10:15:
> > +#define UDPX_INC_STATS_BH(sk, field) \
> > + do { \
> > + if ((sk)->sk_family == AF_INET) \
> > + UDP_INC_STATS_BH(field, 0); \
> > + else \
> > + UDP6_INC_STATS_BH(field, 0); \
> > + } while (0);
> > +
>
> Because there are lot of address families, not only AF_INET
> and AF_INET6.
There may be a lot of families but only two run UDP, or rather, only
two are supported by sunrpc :)
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists