Searched refs:xfrmdev_ops (Results 1 – 14 of 14) sorted by relevance
286 if (!dev->xfrmdev_ops || !dev->xfrmdev_ops->xdo_dev_state_add) { in xfrm_dev_state_add()293 !dev->xfrmdev_ops->xdo_dev_state_advance_esn) { in xfrm_dev_state_add()314 err = dev->xfrmdev_ops->xdo_dev_state_add(x, extack); in xfrm_dev_state_add()360 if (!dev->xfrmdev_ops || !dev->xfrmdev_ops->xdo_dev_policy_add) { in xfrm_dev_policy_add()388 err = dev->xfrmdev_ops->xdo_dev_policy_add(xp, extack); in xfrm_dev_policy_add()427 if (dev && dev->xfrmdev_ops && dev->xfrmdev_ops->xdo_dev_offload_ok) in xfrm_dev_offload_ok()428 return x->xso.dev->xfrmdev_ops->xdo_dev_offload_ok(skb, x); in xfrm_dev_offload_ok()492 (!(dev->xfrmdev_ops && in xfrm_api_check()493 dev->xfrmdev_ops->xdo_dev_state_add && in xfrm_api_check()494 dev->xfrmdev_ops->xdo_dev_state_delete))) in xfrm_api_check()
1278 error = xso->dev->xfrmdev_ops->xdo_dev_state_add(x, NULL); in xfrm_state_find()
1589 if (dev && dev->xfrmdev_ops && in xfrm_dev_state_update_curlft()1590 dev->xfrmdev_ops->xdo_dev_state_update_curlft) in xfrm_dev_state_update_curlft()1591 dev->xfrmdev_ops->xdo_dev_state_update_curlft(x); in xfrm_dev_state_update_curlft()1948 if (xso->dev && xso->dev->xfrmdev_ops->xdo_dev_state_advance_esn) in xfrm_dev_state_advance_esn()1949 xso->dev->xfrmdev_ops->xdo_dev_state_advance_esn(x); in xfrm_dev_state_advance_esn()1975 xso->dev->xfrmdev_ops->xdo_dev_state_delete(x); in xfrm_dev_state_delete()1983 if (dev && dev->xfrmdev_ops) { in xfrm_dev_state_free()1984 if (dev->xfrmdev_ops->xdo_dev_state_free) in xfrm_dev_state_free()1985 dev->xfrmdev_ops->xdo_dev_state_free(x); in xfrm_dev_state_free()1997 if (dev && dev->xfrmdev_ops && dev->xfrmdev_ops->xdo_dev_policy_delete) in xfrm_dev_policy_delete()[all …]
227 static const struct xfrmdev_ops nsim_xfrmdev_ops = {282 ns->netdev->xfrmdev_ops = &nsim_xfrmdev_ops; in nsim_ipsec_init()
496 const struct xfrmdev_ops *xfrmdev_ops; member
6416 if (!adap->uld[CXGB4_ULD_IPSEC].xfrmdev_ops) { in chcr_offload_state()6506 ret = adap->uld[CXGB4_ULD_IPSEC].xfrmdev_ops->xdo_dev_state_add(x, extack); in cxgb4_xfrm_add_state()6526 adap->uld[CXGB4_ULD_IPSEC].xfrmdev_ops->xdo_dev_state_delete(x); in cxgb4_xfrm_del_state()6544 adap->uld[CXGB4_ULD_IPSEC].xfrmdev_ops->xdo_dev_state_free(x); in cxgb4_xfrm_free_state()6563 ret = adap->uld[CXGB4_ULD_IPSEC].xfrmdev_ops->xdo_dev_offload_ok(skb, x); in cxgb4_ipsec_offload_ok()6582 adap->uld[CXGB4_ULD_IPSEC].xfrmdev_ops->xdo_dev_state_advance_esn(x); in cxgb4_advance_esn_state()6588 static const struct xfrmdev_ops cxgb4_xfrmdev_ops = {6846 netdev->xfrmdev_ops = &cxgb4_xfrmdev_ops; in init_one()
539 static const struct xfrmdev_ops nfp_net_ipsec_xfrmdev_ops = {551 nn->dp.netdev->xfrmdev_ops = &nfp_net_ipsec_xfrmdev_ops; in nfp_net_ipsec_init()
446 if (!slave->dev->xfrmdev_ops || in bond_ipsec_add_sa()447 !slave->dev->xfrmdev_ops->xdo_dev_state_add || in bond_ipsec_add_sa()461 err = slave->dev->xfrmdev_ops->xdo_dev_state_add(xs, extack); in bond_ipsec_add_sa()486 if (!slave->dev->xfrmdev_ops || in bond_ipsec_add_sa_all()487 !slave->dev->xfrmdev_ops->xdo_dev_state_add || in bond_ipsec_add_sa_all()501 if (slave->dev->xfrmdev_ops->xdo_dev_state_add(ipsec->xs, NULL)) { in bond_ipsec_add_sa_all()537 if (!slave->dev->xfrmdev_ops || in bond_ipsec_del_sa()538 !slave->dev->xfrmdev_ops->xdo_dev_state_delete || in bond_ipsec_del_sa()544 slave->dev->xfrmdev_ops->xdo_dev_state_delete(xs); in bond_ipsec_del_sa()576 if (!slave->dev->xfrmdev_ops || in bond_ipsec_del_sa_all()[all …]
451 static const struct xfrmdev_ops ixgbevf_xfrmdev_ops = {658 adapter->netdev->xfrmdev_ops = &ixgbevf_xfrmdev_ops; in ixgbevf_init_ipsec_offload()
66 struct xfrmdev_ops {98 adapter->netdev->xfrmdev_ops = &ixgbe_xfrmdev_ops;
86 static const struct xfrmdev_ops ch_ipsec_xfrmdev_ops = {99 .xfrmdev_ops = &ch_ipsec_xfrmdev_ops,
1146 static const struct xfrmdev_ops mlx5e_ipsec_xfrmdev_ops = {1169 netdev->xfrmdev_ops = &mlx5e_ipsec_xfrmdev_ops; in mlx5e_ipsec_build_netdev()
840 static const struct xfrmdev_ops ixgbe_xfrmdev_ops = {1279 adapter->netdev->xfrmdev_ops = &ixgbe_xfrmdev_ops; in ixgbe_init_ipsec_offload()
1030 struct xfrmdev_ops { struct2155 const struct xfrmdev_ops *xfrmdev_ops; member