netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] Simplify IPSEC lookup interfaces.
@ 2011-03-01 23:11 David Miller
  0 siblings, 0 replies; only message in thread
From: David Miller @ 2011-03-01 23:11 UTC (permalink / raw)
  To: netdev


We have two major uglies in our IPSEC rule resolution main entrypoint(s).

First, we have two interfaces, xfrm_lookup and __xfrm_lookup solely so
that callers can implement blackhole route resolution locally.  This
results in a lot of duplicated code.

But it's unnecessary as we can simply make this an afinfo->op()

Secondly we have all of this magic to propagate "can sleep in this
context" state via messy arguments.  Store this inside of the flow
flags instead of via extra arguments.

Now we are down to one interface, xfrm_lookup().

Signed-off-by: David S. Miller <davem@davemloft.net>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-01 23:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-01 23:11 [PATCH 0/8] Simplify IPSEC lookup interfaces David Miller

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).