lvs-devel
|
To: | lvs-devel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxx |
---|---|
Subject: | [rfc v2 05/10] ipvs: Add ipvs_skbnet |
Cc: | Hans Schillstrom <hans.schillstrom@xxxxxxxxxxxx>, Julian Anastasov <ja@xxxxxx>, Daniel Lezcano <daniel.lezcano@xxxxxxx>, Wensong Zhang <wensong@xxxxxxxxxxxx> |
From: | Simon Horman <horms@xxxxxxxxxxxx> |
Date: | Fri, 22 Oct 2010 22:09:39 +0200 |
As suggested by Julian Anastasov Cc: Julian Anastasov <ja@xxxxxx> Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx> Index: lvs-test-2.6/include/net/ip_vs.h =================================================================== --- lvs-test-2.6.orig/include/net/ip_vs.h 2010-10-22 21:16:52.000000000 +0200 +++ lvs-test-2.6/include/net/ip_vs.h 2010-10-22 21:16:56.000000000 +0200 @@ -1097,6 +1097,11 @@ static inline void ip_vs_conn_drop_connt /* CONFIG_IP_VS_NFCT */ #endif +static inline struct net *ipvs_skbnet(struct sk_buff *skb) +{ + return dev_net(skb->dev ? : skb_dst(skb)->dev); +} + #endif /* __KERNEL__ */ #endif /* _NET_IP_VS_H */ -- To unsubscribe from this list: send the line "unsubscribe lvs-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | [rfc v2 09/10] ipvs network name space aware: proto, Simon Horman |
---|---|
Next by Date: | [rfc v2 06/10] ipvs network name space aware: ctl, Simon Horman |
Previous by Thread: | [rfc v2 09/10] ipvs network name space aware: proto, Simon Horman |
Next by Thread: | [rfc v2 06/10] ipvs network name space aware: ctl, Simon Horman |
Indexes: | [Date] [Thread] [Top] [All Lists] |