Home
last modified time | relevance | path

Searched refs:xfrmdev_ops (Results 1 – 14 of 14) sorted by relevance

/linux-6.6.21/net/xfrm/
Dxfrm_device.c286 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()
Dxfrm_state.c1278 error = xso->dev->xfrmdev_ops->xdo_dev_state_add(x, NULL); in xfrm_state_find()
/linux-6.6.21/include/net/
Dxfrm.h1589 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 …]
/linux-6.6.21/drivers/net/netdevsim/
Dipsec.c227 static const struct xfrmdev_ops nsim_xfrmdev_ops = {
282 ns->netdev->xfrmdev_ops = &nsim_xfrmdev_ops; in nsim_ipsec_init()
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_uld.h496 const struct xfrmdev_ops *xfrmdev_ops; member
Dcxgb4_main.c6416 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()
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/crypto/
Dipsec.c539 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()
/linux-6.6.21/drivers/net/bonding/
Dbond_main.c446 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 …]
/linux-6.6.21/drivers/net/ethernet/intel/ixgbevf/
Dipsec.c451 static const struct xfrmdev_ops ixgbevf_xfrmdev_ops = {
658 adapter->netdev->xfrmdev_ops = &ixgbevf_xfrmdev_ops; in ixgbevf_init_ipsec_offload()
/linux-6.6.21/Documentation/networking/
Dxfrm_device.rst66 struct xfrmdev_ops {
98 adapter->netdev->xfrmdev_ops = &ixgbe_xfrmdev_ops;
/linux-6.6.21/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/
Dchcr_ipsec.c86 static const struct xfrmdev_ops ch_ipsec_xfrmdev_ops = {
99 .xfrmdev_ops = &ch_ipsec_xfrmdev_ops,
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec.c1146 static const struct xfrmdev_ops mlx5e_ipsec_xfrmdev_ops = {
1169 netdev->xfrmdev_ops = &mlx5e_ipsec_xfrmdev_ops; in mlx5e_ipsec_build_netdev()
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ipsec.c840 static const struct xfrmdev_ops ixgbe_xfrmdev_ops = {
1279 adapter->netdev->xfrmdev_ops = &ixgbe_xfrmdev_ops; in ixgbe_init_ipsec_offload()
/linux-6.6.21/include/linux/
Dnetdevice.h1030 struct xfrmdev_ops { struct
2155 const struct xfrmdev_ops *xfrmdev_ops; member