Skip to content

Commit 0b3d8e0

Browse files
Denis Kirjanovdavem330
authored andcommitted
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 <kda@linux-powerpc.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 6ae7053 commit 0b3d8e0

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎include/linux/skbuff.h‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2708,17 +2708,14 @@ static inline bool skb_rx_queue_recorded(const struct sk_buff *skb)
27082708
u16 __skb_tx_hash(const struct net_device *dev, const struct sk_buff *skb,
27092709
unsigned int num_tx_queues);
27102710

2711-
#ifdef CONFIG_XFRM
27122711
static inline struct sec_path *skb_sec_path(struct sk_buff *skb)
27132712
{
2713+
#ifdef CONFIG_XFRM
27142714
return skb->sp;
2715-
}
27162715
#else
2717-
static inline struct sec_path *skb_sec_path(struct sk_buff *skb)
2718-
{
27192716
return NULL;
2720-
}
27212717
#endif
2718+
}
27222719

27232720
/* Keeps track of mac header offset relative to skb->head.
27242721
* It is useful for TSO of Tunneling protocol. e.g. GRE.

0 commit comments

Comments
 (0)