diff options
Diffstat (limited to 'backport-include/net/xfrm.h')
-rw-r--r-- | backport-include/net/xfrm.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/backport-include/net/xfrm.h b/backport-include/net/xfrm.h new file mode 100644 index 0000000..7e55984 --- /dev/null +++ b/backport-include/net/xfrm.h @@ -0,0 +1,14 @@ +#ifndef __BACKPORT_NET_XFRM_H +#define __BACKPORT_NET_XFRM_H +#include_next <net/xfrm.h> +#include <linux/version.h> + +#if LINUX_VERSION_IS_LESS(5,4,0) +#define skb_ext_reset LINUX_BACKPORT(skb_ext_reset) +static inline void skb_ext_reset(struct sk_buff *skb) +{ + secpath_reset(skb); +} +#endif + +#endif /* __BACKPORT_NET_XFRM_H */ |