[RFC 2.6.10 2/22] xfrm: Add xfrm offload management calls to struct netdevice
From: David Dillow (dave_at_thedillows.org)
Date: 12/30/04
- Previous message: David Dillow: "[RFC 2.6.10 0/22] Add hardware assist for IPSEC crypto"
- Next in thread: David Dillow: "[RFC 2.6.10 3/22] xfrm: Add offload management routines"
- Reply: David Dillow: "[RFC 2.6.10 3/22] xfrm: Add offload management routines"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Dec 2004 03:48:34 -0500 To: netdev@oss.sgi.com
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/12/30 00:28:25-05:00 dave@thedillows.org
# Add the xfrm offload management calls to struct netdevice.
#
# xfrm_state_add() is called for inbound xfrm states
# xfrm_bundle_add() is called for outbound xfrm bundles
# xfrm_state_del() is called for all offloaded xfrms,
# inbound or outbound.
#
# If a driver adds NETIF_F_IPSEC to its features, it must
# provide all three callbacks.
#
# Signed-off-by: David Dillow <dave@thedillows.org>
#
# include/linux/netdevice.h
# 2004/12/30 00:28:07-05:00 dave@thedillows.org +11 -0
# Add the xfrm offload management calls to struct netdevice.
#
# xfrm_state_add() is called for inbound xfrm states
# xfrm_bundle_add() is called for outbound xfrm bundles
# xfrm_state_del() is called for all offloaded xfrms,
# inbound or outbound.
#
# If a driver adds NETIF_F_IPSEC to its features, it must
# provide all three callbacks.
#
# Signed-off-by: David Dillow <dave@thedillows.org>
#
diff -Nru a/include/linux/netdevice.h b/include/linux/netdevice.h
--- a/include/linux/netdevice.h 2004-12-30 01:11:56 -05:00
+++ b/include/linux/netdevice.h 2004-12-30 01:11:56 -05:00
@@ -250,6 +250,9 @@
};
#define NETDEV_BOOT_SETUP_MAX 8
+struct xfrm_state;
+struct xfrm_offload;
+struct xfrm_bundle_list;
/*
* The DEVICE structure.
@@ -415,6 +418,7 @@
#define NETIF_F_VLAN_CHALLENGED 1024 /* Device cannot handle VLAN packets */
#define NETIF_F_TSO 2048 /* Can offload TCP/IP segmentation */
#define NETIF_F_LLTX 4096 /* LockLess TX */
+#define NETIF_F_IPSEC 8192 /* Can offload IPSEC crypto */
/* Called after device is detached from network. */
void (*uninit)(struct net_device *dev);
@@ -464,6 +468,13 @@
unsigned short vid);
void (*vlan_rx_kill_vid)(struct net_device *dev,
unsigned short vid);
+
+ void (*xfrm_state_add)(struct net_device *dev,
+ struct xfrm_state *x);
+ void (*xfrm_bundle_add)(struct net_device *dev,
+ struct xfrm_bundle_list *bl);
+ void (*xfrm_state_del)(struct net_device *dev,
+ struct xfrm_offload *xol);
int (*hard_header_parse)(struct sk_buff *skb,
unsigned char *haddr);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: David Dillow: "[RFC 2.6.10 0/22] Add hardware assist for IPSEC crypto"
- Next in thread: David Dillow: "[RFC 2.6.10 3/22] xfrm: Add offload management routines"
- Reply: David Dillow: "[RFC 2.6.10 3/22] xfrm: Add offload management routines"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]