include/linux/skbuff.h: move CONFIG_XFRM check inside the skb_sec_path()
Subsystems (2)
PATCH 1/1 include/linux/skbuff.h: move CONFIG_XFRM check inside the skb_sec_path()
And thus we have only one function definition
Signed-off-by Denis Kirjanov <[email protected]>
--- include/linux/skbuff.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
include/linux/skbuff.h +2 -5
@@ -2736,17 +2736,14 @@ extern u16 __skb_tx_hash(const struct net_device *dev,const struct sk_buff *skb, unsigned int num_tx_queues); -#ifdef CONFIG_XFRM static inline struct sec_path *skb_sec_path (struct sk_buff *skb) { +#ifdef CONFIG_XFRM return skb->sp; -}#else -static inline struct sec_path *skb_sec_path (struct sk_buff *skb) -{return NULL ; -}#endif +}/* Keeps track of mac header offset relative to skb->head. * It is useful for TSO of Tunneling protocol. e.g. GRE.
Signature · 1 line
1.8.0.2
David Miller
maintainerFrom: Denis Kirjanov <[email protected]>
Date: Sun, 29 Sep 2013 18:07:25 +0400
Quoted 3 lines
And thus we have only one function definition
Signed-off-by Denis Kirjanov <[email protected]>
This does not apply cleanly to the current net-next tree.
No problem, I'll respin.
Thanks!
Quoted 9 lines · David Miller
From: Denis Kirjanov <[email protected]>
Date: Sun, 29 Sep 2013 18:07:25 +0400Quoted 3 lines
And thus we have only one function definition
Signed-off-by Denis Kirjanov <[email protected]>This does not apply cleanly to the current net-next tree.