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: Bharat Bhushan <bbhushan2@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
32188be805
commit
b3ae3dc3a3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user