[Top] [All Lists]

[5/*] [IPSEC] Use XFRM_MSG_* instead of XFRM_SAP_*

To: "David S. Miller" <davem@xxxxxxxxxxxxx>
Subject: [5/*] [IPSEC] Use XFRM_MSG_* instead of XFRM_SAP_*
From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 10 Apr 2005 19:02:50 +1000
Cc: Masahide NAKAMURA <nakam@xxxxxxxxxxxxxx>, Patrick McHardy <kaber@xxxxxxxxx>, jamal <hadi@xxxxxxxxxx>, netdev <netdev@xxxxxxxxxxx>
In-reply-to: <20050410074849.GA13259@xxxxxxxxxxxxxxxxxxx>
References: <1112702604.1089.119.camel@xxxxxxxxxxxxxxxx> <20050409105452.GA7171@xxxxxxxxxxxxxxxxxxx> <20050409111244.GB7171@xxxxxxxxxxxxxxxxxxx> <20050409111551.GA7378@xxxxxxxxxxxxxxxxxxx> <20050410074849.GA13259@xxxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6+20040907i

I spotted some more issues while preparing the last patch of the
series.  So I'll extend it a little further.

This patch removes XFRM_SAP_* and converts them over to XFRM_MSG_*.
The netlink interface is meant to map directly onto the underlying
xfrm subsystem.  Therefore rather than using a new independent
representation for the events we can simply use the existing ones
from xfrm_user.

I also killed a couple of inline's in af_key since

1) They are not performance critical.
2) None of the other x2y functions here are inlined.

Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>

 include/net/xfrm.h    |   12 --------
 net/key/af_key.c      |   70 +++++++++++++++++++++++++-------------------------
 net/xfrm/xfrm_state.c |    4 +-
 net/xfrm/xfrm_user.c  |   63 ++++++++++++---------------------------------
 4 files changed, 55 insertions(+), 94 deletions(-)
Visit Openswan at
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page:
PGP Key:

Attachment: xfrm-event-5
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>