aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-05-11 14:26:15 -0400
committerDavid S. Miller <davem@davemloft.net>2011-05-11 14:26:58 -0400
commit3c709f8fb43e07a0403bba4a8ca7ba00ab874994 (patch)
tree9efc1e2bf6930851f0224f525b6cde0f5297fa61 /include
parent0074820978004cc484b132d7a9ce0df414660d9d (diff)
parent9bbc052d5e63512b0ce4e201ea97e12fba9fda82 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-3.6
Conflicts: drivers/net/benet/be_main.c
Diffstat (limited to 'include')
-rw-r--r--include/net/ip_vs.h17
-rw-r--r--include/net/xfrm.h3
2 files changed, 20 insertions, 0 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h
index e0b7f139aa88..9d1f510ab6d0 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -788,6 +788,7 @@ struct ip_vs_app {
788/* IPVS in network namespace */ 788/* IPVS in network namespace */
789struct netns_ipvs { 789struct netns_ipvs {
790 int gen; /* Generation */ 790 int gen; /* Generation */
791 int enable; /* enable like nf_hooks do */
791 /* 792 /*
792 * Hash table: for real service lookups 793 * Hash table: for real service lookups
793 */ 794 */
@@ -1086,6 +1087,22 @@ ip_vs_control_add(struct ip_vs_conn *cp, struct ip_vs_conn *ctl_cp)
1086 atomic_inc(&ctl_cp->n_control); 1087 atomic_inc(&ctl_cp->n_control);
1087} 1088}
1088 1089
1090/*
1091 * IPVS netns init & cleanup functions
1092 */
1093extern int __ip_vs_estimator_init(struct net *net);
1094extern int __ip_vs_control_init(struct net *net);
1095extern int __ip_vs_protocol_init(struct net *net);
1096extern int __ip_vs_app_init(struct net *net);
1097extern int __ip_vs_conn_init(struct net *net);
1098extern int __ip_vs_sync_init(struct net *net);
1099extern void __ip_vs_conn_cleanup(struct net *net);
1100extern void __ip_vs_app_cleanup(struct net *net);
1101extern void __ip_vs_protocol_cleanup(struct net *net);
1102extern void __ip_vs_control_cleanup(struct net *net);
1103extern void __ip_vs_estimator_cleanup(struct net *net);
1104extern void __ip_vs_sync_cleanup(struct net *net);
1105extern void __ip_vs_service_cleanup(struct net *net);
1089 1106
1090/* 1107/*
1091 * IPVS application functions 1108 * IPVS application functions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index 1cdd4b7b2861..b203e14d26b7 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -324,6 +324,7 @@ struct xfrm_state_afinfo {
324 int (*tmpl_sort)(struct xfrm_tmpl **dst, struct xfrm_tmpl **src, int n); 324 int (*tmpl_sort)(struct xfrm_tmpl **dst, struct xfrm_tmpl **src, int n);
325 int (*state_sort)(struct xfrm_state **dst, struct xfrm_state **src, int n); 325 int (*state_sort)(struct xfrm_state **dst, struct xfrm_state **src, int n);
326 int (*output)(struct sk_buff *skb); 326 int (*output)(struct sk_buff *skb);
327 int (*output_finish)(struct sk_buff *skb);
327 int (*extract_input)(struct xfrm_state *x, 328 int (*extract_input)(struct xfrm_state *x,
328 struct sk_buff *skb); 329 struct sk_buff *skb);
329 int (*extract_output)(struct xfrm_state *x, 330 int (*extract_output)(struct xfrm_state *x,
@@ -1463,6 +1464,7 @@ static inline int xfrm4_rcv_spi(struct sk_buff *skb, int nexthdr, __be32 spi)
1463extern int xfrm4_extract_output(struct xfrm_state *x, struct sk_buff *skb); 1464extern int xfrm4_extract_output(struct xfrm_state *x, struct sk_buff *skb);
1464extern int xfrm4_prepare_output(struct xfrm_state *x, struct sk_buff *skb); 1465extern int xfrm4_prepare_output(struct xfrm_state *x, struct sk_buff *skb);
1465extern int xfrm4_output(struct sk_buff *skb); 1466extern int xfrm4_output(struct sk_buff *skb);
1467extern int xfrm4_output_finish(struct sk_buff *skb);
1466extern int xfrm4_tunnel_register(struct xfrm_tunnel *handler, unsigned short family); 1468extern int xfrm4_tunnel_register(struct xfrm_tunnel *handler, unsigned short family);
1467extern int xfrm4_tunnel_deregister(struct xfrm_tunnel *handler, unsigned short family); 1469extern int xfrm4_tunnel_deregister(struct xfrm_tunnel *handler, unsigned short family);
1468extern int xfrm6_extract_header(struct sk_buff *skb); 1470extern int xfrm6_extract_header(struct sk_buff *skb);
@@ -1479,6 +1481,7 @@ extern __be32 xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *sad
1479extern int xfrm6_extract_output(struct xfrm_state *x, struct sk_buff *skb); 1481extern int xfrm6_extract_output(struct xfrm_state *x, struct sk_buff *skb);
1480extern int xfrm6_prepare_output(struct xfrm_state *x, struct sk_buff *skb); 1482extern int xfrm6_prepare_output(struct xfrm_state *x, struct sk_buff *skb);
1481extern int xfrm6_output(struct sk_buff *skb); 1483extern int xfrm6_output(struct sk_buff *skb);
1484extern int xfrm6_output_finish(struct sk_buff *skb);
1482extern int xfrm6_find_1stfragopt(struct xfrm_state *x, struct sk_buff *skb, 1485extern int xfrm6_find_1stfragopt(struct xfrm_state *x, struct sk_buff *skb,
1483 u8 **prevhdr); 1486 u8 **prevhdr);
1484 1487