* [PATCH net-next] include/linux/skbuff.h: move CONFIG_XFRM check inside the skb_sec_path()
@ 2013-09-29 14:07 Denis Kirjanov
2013-10-01 5:25 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Denis Kirjanov @ 2013-09-29 14:07 UTC (permalink / raw)
To: netdev, davem; +Cc: Denis Kirjanov
And thus we have only one function definition
Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org>
---
include/linux/skbuff.h | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 2ddb48d..7399045 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -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.
--
1.8.0.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] include/linux/skbuff.h: move CONFIG_XFRM check inside the skb_sec_path()
2013-09-29 14:07 [PATCH net-next] include/linux/skbuff.h: move CONFIG_XFRM check inside the skb_sec_path() Denis Kirjanov
@ 2013-10-01 5:25 ` David Miller
2013-10-01 6:51 ` Denis Kirjanov
0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2013-10-01 5:25 UTC (permalink / raw)
To: kda; +Cc: netdev
From: Denis Kirjanov <kda@linux-powerpc.org>
Date: Sun, 29 Sep 2013 18:07:25 +0400
> And thus we have only one function definition
>
> Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org>
This does not apply cleanly to the current net-next tree.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] include/linux/skbuff.h: move CONFIG_XFRM check inside the skb_sec_path()
2013-10-01 5:25 ` David Miller
@ 2013-10-01 6:51 ` Denis Kirjanov
0 siblings, 0 replies; 3+ messages in thread
From: Denis Kirjanov @ 2013-10-01 6:51 UTC (permalink / raw)
To: David Miller; +Cc: netdev
No problem, I'll respin.
Thanks!
On 10/1/13, David Miller <davem@davemloft.net> wrote:
> From: Denis Kirjanov <kda@linux-powerpc.org>
> Date: Sun, 29 Sep 2013 18:07:25 +0400
>
>> And thus we have only one function definition
>>
>> Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org>
>
> This does not apply cleanly to the current net-next tree.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-01 6:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-29 14:07 [PATCH net-next] include/linux/skbuff.h: move CONFIG_XFRM check inside the skb_sec_path() Denis Kirjanov
2013-10-01 5:25 ` David Miller
2013-10-01 6:51 ` Denis Kirjanov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).