Commit b3ae3dc3 authored by Bharat Bhushan's avatar Bharat Bhushan Committed by David S. Miller
Browse files

cn10k-ipsec: Enable outbound ipsec crypto offload



Hardware is initialized and netdev transmit flow is
hooked up for outbound ipsec crypto offload, so finally
enable ipsec offload.

Signed-off-by: default avatarBharat Bhushan <bbhushan2@marvell.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 32188be8
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -821,10 +821,10 @@ int cn10k_ipsec_init(struct net_device *netdev)
		return -ENOMEM;
	}

	/* Set xfrm device ops
	 * NETIF_F_HW_ESP is not set as ipsec setup is not yet complete.
	 */
	/* Set xfrm device ops */
	netdev->xfrmdev_ops = &cn10k_ipsec_xfrmdev_ops;
	netdev->hw_features |= NETIF_F_HW_ESP;
	netdev->hw_enc_features |= NETIF_F_HW_ESP;

	cn10k_cpt_device_set_unavailable(pf);
	return 0;