Re: [PATCH 1/4] flow: virtualize flow cache entry methods

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Herbert Xu
Date: Sunday, April 4, 2010 - 3:42 am

On Thu, Apr 01, 2010 at 03:52:17PM +0300, Timo Teras wrote:

OK this bit really bugs me.

When I first looked at it, my reaction was why on earth are we
returning an ops pointer? Only after some digging around do I see
the fact that this ops pointer is in fact embedded in xfrm_policy.

How about embedding flow_cache_entry in xfrm_policy instead? Returning
flow_cache_entry * would make a lot more sense than a nested pointer
to flow_cache_entry_ops.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/4] caching bundles, iteration 3, Timo Teras, (Thu Apr 1, 5:52 am)
[PATCH 3/4] xfrm: remove policy garbage collection, Timo Teras, (Thu Apr 1, 5:52 am)
Re: [PATCH 1/4] flow: virtualize flow cache entry methods, =?UTF-8?B?VGltbyBUZX ..., (Thu Apr 1, 6:07 am)
Re: [PATCH 0/4] caching bundles, iteration 3, David Miller, (Thu Apr 1, 8:00 pm)
Re: [PATCH 0/4] caching bundles, iteration 3, Herbert Xu, (Fri Apr 2, 6:12 am)
Re: [PATCH 1/4] flow: virtualize flow cache entry methods, =?ISO-8859-1?Q?Timo_ ..., (Sat Apr 3, 6:50 am)
Re: [PATCH 1/4] flow: virtualize flow cache entry methods, =?ISO-8859-1?Q?Timo_ ..., (Sat Apr 3, 7:26 am)
Re: [PATCH 1/4] flow: virtualize flow cache entry methods, =?ISO-8859-1?Q?Timo_ ..., (Sat Apr 3, 1:19 pm)
Re: [PATCH 1/4] flow: virtualize flow cache entry methods, =?ISO-8859-1?Q?Timo_ ..., (Sat Apr 3, 10:50 pm)
Re: [PATCH 1/4] flow: virtualize flow cache entry methods, =?ISO-8859-1?Q?Timo_ ..., (Sat Apr 3, 11:07 pm)
Re: [PATCH 1/4] flow: virtualize flow cache entry methods, =?ISO-8859-1?Q?Timo_ ..., (Sat Apr 3, 11:28 pm)
Re: [PATCH 1/4] flow: virtualize flow cache entry methods, Herbert Xu, (Sun Apr 4, 3:42 am)
Re: [PATCH 1/4] flow: virtualize flow cache entry methods, =?ISO-8859-1?Q?Timo_ ..., (Sun Apr 4, 3:50 am)
Re: [PATCH 1/4] flow: virtualize flow cache entry methods, =?ISO-8859-1?Q?Timo_ ..., (Sun Apr 4, 4:06 am)
Re: [PATCH 1/4] flow: virtualize flow cache entry methods, =?ISO-8859-1?Q?Timo_ ..., (Sun Apr 4, 5:09 am)