diff options
-rw-r--r-- | backport/backport-include/net/xfrm.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/backport/backport-include/net/xfrm.h b/backport/backport-include/net/xfrm.h new file mode 100644 index 00000000..7e55984b --- /dev/null +++ b/backport/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 */ |