|
|
@@ -34,6 +34,7 @@
|
|
|
#include <net/tc_act/tc_mirred.h>
|
|
|
#include <net/vxlan.h>
|
|
|
#include <net/mpls.h>
|
|
|
+#include <net/xfrm.h>
|
|
|
|
|
|
#include "ixgbe.h"
|
|
|
#include "ixgbe_common.h"
|
|
|
@@ -8599,7 +8600,8 @@ netdev_tx_t ixgbe_xmit_frame_ring(struct sk_buff *skb,
|
|
|
#endif /* IXGBE_FCOE */
|
|
|
|
|
|
#ifdef CONFIG_XFRM_OFFLOAD
|
|
|
- if (skb->sp && !ixgbe_ipsec_tx(tx_ring, first, &ipsec_tx))
|
|
|
+ if (xfrm_offload(skb) &&
|
|
|
+ !ixgbe_ipsec_tx(tx_ring, first, &ipsec_tx))
|
|
|
goto out_drop;
|
|
|
#endif
|
|
|
tso = ixgbe_tso(tx_ring, first, &hdr_len, &ipsec_tx);
|