Searched refs:xfrmdev_ops (Results 1 – 12 of 12) sorted by relevance
248 if (!dev->xfrmdev_ops || !dev->xfrmdev_ops->xdo_dev_state_add) { in xfrm_dev_state_add()255 !dev->xfrmdev_ops->xdo_dev_state_advance_esn) { in xfrm_dev_state_add()266 err = dev->xfrmdev_ops->xdo_dev_state_add(x); in xfrm_dev_state_add()305 if (dev && dev->xfrmdev_ops && dev->xfrmdev_ops->xdo_dev_offload_ok) in xfrm_dev_offload_ok()306 return x->xso.dev->xfrmdev_ops->xdo_dev_offload_ok(skb, x); in xfrm_dev_offload_ok()370 (!(dev->xfrmdev_ops && in xfrm_api_check()371 dev->xfrmdev_ops->xdo_dev_state_add && in xfrm_api_check()372 dev->xfrmdev_ops->xdo_dev_state_delete))) in xfrm_api_check()
222 static const struct xfrmdev_ops nsim_xfrmdev_ops = {277 ns->netdev->xfrmdev_ops = &nsim_xfrmdev_ops; in nsim_ipsec_init()
404 if (!slave->dev->xfrmdev_ops || in bond_ipsec_add_sa()405 !slave->dev->xfrmdev_ops->xdo_dev_state_add || in bond_ipsec_add_sa()419 err = slave->dev->xfrmdev_ops->xdo_dev_state_add(xs); in bond_ipsec_add_sa()444 if (!slave->dev->xfrmdev_ops || in bond_ipsec_add_sa_all()445 !slave->dev->xfrmdev_ops->xdo_dev_state_add || in bond_ipsec_add_sa_all()459 if (slave->dev->xfrmdev_ops->xdo_dev_state_add(ipsec->xs)) { in bond_ipsec_add_sa_all()495 if (!slave->dev->xfrmdev_ops || in bond_ipsec_del_sa()496 !slave->dev->xfrmdev_ops->xdo_dev_state_delete || in bond_ipsec_del_sa()502 slave->dev->xfrmdev_ops->xdo_dev_state_delete(xs); in bond_ipsec_del_sa()534 if (!slave->dev->xfrmdev_ops || in bond_ipsec_del_sa_all()[all …]
42 struct xfrmdev_ops {67 adapter->netdev->xfrmdev_ops = &ixgbe_xfrmdev_ops;
496 const struct xfrmdev_ops *xfrmdev_ops; member
6427 if (!adap->uld[CXGB4_ULD_IPSEC].xfrmdev_ops) { in chcr_offload_state()6517 ret = adap->uld[CXGB4_ULD_IPSEC].xfrmdev_ops->xdo_dev_state_add(x); in cxgb4_xfrm_add_state()6537 adap->uld[CXGB4_ULD_IPSEC].xfrmdev_ops->xdo_dev_state_delete(x); in cxgb4_xfrm_del_state()6555 adap->uld[CXGB4_ULD_IPSEC].xfrmdev_ops->xdo_dev_state_free(x); in cxgb4_xfrm_free_state()6574 ret = adap->uld[CXGB4_ULD_IPSEC].xfrmdev_ops->xdo_dev_offload_ok(skb, x); in cxgb4_ipsec_offload_ok()6593 adap->uld[CXGB4_ULD_IPSEC].xfrmdev_ops->xdo_dev_state_advance_esn(x); in cxgb4_advance_esn_state()6599 static const struct xfrmdev_ops cxgb4_xfrmdev_ops = {6871 netdev->xfrmdev_ops = &cxgb4_xfrmdev_ops; in init_one()
522 static const struct xfrmdev_ops mlx5e_ipsec_xfrmdev_ops = {542 netdev->xfrmdev_ops = &mlx5e_ipsec_xfrmdev_ops; in mlx5e_ipsec_build_netdev()
1865 if (xso->dev && xso->dev->xfrmdev_ops->xdo_dev_state_advance_esn) in xfrm_dev_state_advance_esn()1866 xso->dev->xfrmdev_ops->xdo_dev_state_advance_esn(x); in xfrm_dev_state_advance_esn()1892 xso->dev->xfrmdev_ops->xdo_dev_state_delete(x); in xfrm_dev_state_delete()1900 if (dev && dev->xfrmdev_ops) { in xfrm_dev_state_free()1901 if (dev->xfrmdev_ops->xdo_dev_state_free) in xfrm_dev_state_free()1902 dev->xfrmdev_ops->xdo_dev_state_free(x); in xfrm_dev_state_free()
445 static const struct xfrmdev_ops ixgbevf_xfrmdev_ops = {651 adapter->netdev->xfrmdev_ops = &ixgbevf_xfrmdev_ops; in ixgbevf_init_ipsec_offload()
84 static const struct xfrmdev_ops ch_ipsec_xfrmdev_ops = {100 .xfrmdev_ops = &ch_ipsec_xfrmdev_ops,
834 static const struct xfrmdev_ops ixgbe_xfrmdev_ops = {1273 adapter->netdev->xfrmdev_ops = &ixgbe_xfrmdev_ops; in ixgbe_init_ipsec_offload()
920 struct xfrmdev_ops { struct1933 const struct xfrmdev_ops *xfrmdev_ops; member