Home
last modified time | relevance | path

Searched refs:xso (Results 1 – 17 of 17) sorted by relevance

/linux-6.1.9/net/xfrm/
Dxfrm_device.c132 if (xo->flags & XFRM_GRO || x->xso.dir == XFRM_DEV_OFFLOAD_IN) in validate_xmit_xfrm()
136 if ((x->xso.dev != dev) && (x->xso.real_dev == dev)) in validate_xmit_xfrm()
149 if (skb_is_gso(skb) && (unlikely(x->xso.dev != dev) || in validate_xmit_xfrm()
229 struct xfrm_dev_offload *xso = &x->xso; in xfrm_dev_state_add() local
272 xso->dev = NULL; in xfrm_dev_state_add()
280 xso->dev = NULL; in xfrm_dev_state_add()
285 xso->dev = dev; in xfrm_dev_state_add()
286 netdev_tracker_alloc(dev, &xso->dev_tracker, GFP_ATOMIC); in xfrm_dev_state_add()
287 xso->real_dev = dev; in xfrm_dev_state_add()
290 xso->dir = XFRM_DEV_OFFLOAD_IN; in xfrm_dev_state_add()
[all …]
Dxfrm_state.c754 struct xfrm_dev_offload *xso; in xfrm_dev_state_flush_secctx_check() local
757 xso = &x->xso; in xfrm_dev_state_flush_secctx_check()
759 if (xso->dev == dev && in xfrm_dev_state_flush_secctx_check()
838 struct xfrm_dev_offload *xso; in xfrm_dev_state_flush() local
841 xso = &x->xso; in xfrm_dev_state_flush()
843 if (!xfrm_state_kern(x) && xso->dev == dev) { in xfrm_dev_state_flush()
Dxfrm_output.c748 if (x->xso.dev && x->xso.dev->features & NETIF_F_HW_ESP_TX_CSUM) in xfrm_output()
Dxfrm_user.c932 static int copy_user_offload(struct xfrm_dev_offload *xso, struct sk_buff *skb) in copy_user_offload() argument
943 xuo->ifindex = xso->dev->ifindex; in copy_user_offload()
944 if (xso->dir == XFRM_DEV_OFFLOAD_IN) in copy_user_offload()
1117 if(x->xso.dev) in copy_to_user_state_extra()
1118 ret = copy_user_offload(&x->xso, skb); in copy_to_user_state_extra()
3202 if (x->xso.dev) in xfrm_sa_len()
/linux-6.1.9/drivers/net/ethernet/intel/ixgbevf/
Dipsec.c28 sam->dir = xs->xso.dir; in ixgbevf_ipsec_set_pf_sa()
214 struct net_device *dev = xs->xso.real_dev; in ixgbevf_ipsec_parse_proto_keys()
263 struct net_device *dev = xs->xso.real_dev; in ixgbevf_ipsec_add_sa()
283 if (xs->xso.dir == XFRM_DEV_OFFLOAD_IN) { in ixgbevf_ipsec_add_sa()
335 xs->xso.offload_handle = sa_idx + IXGBE_IPSEC_BASE_RX_INDEX; in ixgbevf_ipsec_add_sa()
375 xs->xso.offload_handle = sa_idx + IXGBE_IPSEC_BASE_TX_INDEX; in ixgbevf_ipsec_add_sa()
389 struct net_device *dev = xs->xso.real_dev; in ixgbevf_ipsec_del_sa()
397 if (xs->xso.dir == XFRM_DEV_OFFLOAD_IN) { in ixgbevf_ipsec_del_sa()
398 sa_idx = xs->xso.offload_handle - IXGBE_IPSEC_BASE_RX_INDEX; in ixgbevf_ipsec_del_sa()
402 sa_idx, xs->xso.offload_handle); in ixgbevf_ipsec_del_sa()
[all …]
/linux-6.1.9/drivers/net/netdevsim/
Dipsec.c88 struct net_device *dev = xs->xso.real_dev; in nsim_ipsec_parse_proto_keys()
137 dev = xs->xso.real_dev; in nsim_ipsec_add_sa()
174 if (xs->xso.dir == XFRM_DEV_OFFLOAD_IN) { in nsim_ipsec_add_sa()
189 xs->xso.offload_handle = sa_idx | NSIM_IPSEC_VALID; in nsim_ipsec_add_sa()
197 struct netdevsim *ns = netdev_priv(xs->xso.real_dev); in nsim_ipsec_del_sa()
201 sa_idx = xs->xso.offload_handle & ~NSIM_IPSEC_VALID; in nsim_ipsec_del_sa()
214 struct netdevsim *ns = netdev_priv(xs->xso.real_dev); in nsim_ipsec_offload_ok()
252 sa_idx = xs->xso.offload_handle & ~NSIM_IPSEC_VALID; in nsim_ipsec_tx()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec.c45 return (struct mlx5e_ipsec_sa_entry *)x->xso.offload_handle; in to_ipsec_sa_entry()
172 attrs->action = (x->xso.dir == XFRM_DEV_OFFLOAD_OUT) ? in mlx5e_ipsec_build_accel_xfrm_attrs()
191 struct net_device *netdev = x->xso.real_dev; in mlx5e_xfrm_validate_state()
272 struct net_device *netdev = x->xso.real_dev; in mlx5e_xfrm_add_state()
306 if (x->xso.dir == XFRM_DEV_OFFLOAD_IN) { in mlx5e_xfrm_add_state()
316 x->xso.offload_handle = (unsigned long)sa_entry; in mlx5e_xfrm_add_state()
333 if (x->xso.dir == XFRM_DEV_OFFLOAD_IN) in mlx5e_xfrm_del_state()
340 struct mlx5e_priv *priv = netdev_priv(x->xso.dev); in mlx5e_xfrm_free_state()
Dipsec_rxtx.c233 if (unlikely(!x->xso.offload_handle || in mlx5e_ipsec_tx_build_eseg()
280 if (unlikely(!x->xso.offload_handle || in mlx5e_ipsec_handle_tx_skb()
293 sa_entry = (struct mlx5e_ipsec_sa_entry *)x->xso.offload_handle; in mlx5e_ipsec_handle_tx_skb()
Dipsec_rxtx.h97 if (!x || !x->xso.offload_handle) in mlx5e_ipsec_feature_check()
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ipsec.c430 struct net_device *dev = xs->xso.real_dev; in ixgbe_ipsec_parse_proto_keys()
480 struct net_device *dev = xs->xso.real_dev; in ixgbe_ipsec_check_mgmt_ip()
563 struct net_device *dev = xs->xso.real_dev; in ixgbe_ipsec_add_sa()
588 if (xs->xso.dir == XFRM_DEV_OFFLOAD_IN) { in ixgbe_ipsec_add_sa()
692 xs->xso.offload_handle = sa_idx + IXGBE_IPSEC_BASE_RX_INDEX; in ixgbe_ipsec_add_sa()
733 xs->xso.offload_handle = sa_idx + IXGBE_IPSEC_BASE_TX_INDEX; in ixgbe_ipsec_add_sa()
753 struct net_device *dev = xs->xso.real_dev; in ixgbe_ipsec_del_sa()
760 if (xs->xso.dir == XFRM_DEV_OFFLOAD_IN) { in ixgbe_ipsec_del_sa()
764 sa_idx = xs->xso.offload_handle - IXGBE_IPSEC_BASE_RX_INDEX; in ixgbe_ipsec_del_sa()
769 sa_idx, xs->xso.offload_handle); in ixgbe_ipsec_del_sa()
[all …]
/linux-6.1.9/include/net/
Dxfrm.h254 struct xfrm_dev_offload xso; member
1897 struct xfrm_dev_offload *xso = &x->xso; in xfrm_dev_state_advance_esn() local
1899 if (xso->dev && xso->dev->xfrmdev_ops->xdo_dev_state_advance_esn) in xfrm_dev_state_advance_esn()
1900 xso->dev->xfrmdev_ops->xdo_dev_state_advance_esn(x); in xfrm_dev_state_advance_esn()
1912 if (!x->xso.offload_handle && !xdst->child->xfrm) in xfrm_dst_offload_ok()
1914 if (x->xso.offload_handle && (x->xso.dev == xfrm_dst_path(dst)->dev) && in xfrm_dst_offload_ok()
1923 struct xfrm_dev_offload *xso = &x->xso; in xfrm_dev_state_delete() local
1925 if (xso->dev) in xfrm_dev_state_delete()
1926 xso->dev->xfrmdev_ops->xdo_dev_state_delete(x); in xfrm_dev_state_delete()
1931 struct xfrm_dev_offload *xso = &x->xso; in xfrm_dev_state_free() local
[all …]
/linux-6.1.9/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/
Dchcr_ipsec.c297 x->xso.offload_handle = (unsigned long)sa_entry; in ch_ipsec_xfrm_add_state()
306 if (!x->xso.offload_handle) in ch_ipsec_xfrm_del_state()
314 if (!x->xso.offload_handle) in ch_ipsec_xfrm_free_state()
317 sa_entry = (struct ipsec_sa_entry *)x->xso.offload_handle; in ch_ipsec_xfrm_free_state()
339 if (!x->xso.offload_handle) in ch_ipsec_advance_esn_state()
718 if (!x->xso.offload_handle) in ch_ipsec_xmit()
721 sa_entry = (struct ipsec_sa_entry *)x->xso.offload_handle; in ch_ipsec_xmit()
/linux-6.1.9/net/ipv4/
Desp4_offload.c224 !(features & NETIF_F_HW_ESP)) || x->xso.dev != skb->dev) in esp4_gso_segment()
272 x->xso.dev != skb->dev) { in esp_xmit()
/linux-6.1.9/net/ipv6/
Desp6_offload.c262 if (!(features & NETIF_F_HW_ESP) || x->xso.dev != skb->dev) in esp6_gso_segment()
307 if (!(features & NETIF_F_HW_ESP) || x->xso.dev != skb->dev) { in esp6_xmit()
/linux-6.1.9/Documentation/networking/
Dxfrm_device.rst89 xs->xso.offload_handle = context;
104 context = xs->xso.offload_handle;
/linux-6.1.9/drivers/net/bonding/
Dbond_main.c425 struct net_device *bond_dev = xs->xso.dev; in bond_ipsec_add_sa()
455 xs->xso.real_dev = slave->dev; in bond_ipsec_add_sa()
496 ipsec->xs->xso.real_dev = slave->dev; in bond_ipsec_add_sa_all()
499 ipsec->xs->xso.real_dev = NULL; in bond_ipsec_add_sa_all()
513 struct net_device *bond_dev = xs->xso.dev; in bond_ipsec_del_sa()
528 if (!xs->xso.real_dev) in bond_ipsec_del_sa()
531 WARN_ON(xs->xso.real_dev != slave->dev); in bond_ipsec_del_sa()
569 if (!ipsec->xs->xso.real_dev) in bond_ipsec_del_sa_all()
581 ipsec->xs->xso.real_dev = NULL; in bond_ipsec_del_sa_all()
594 struct net_device *bond_dev = xs->xso.dev; in bond_ipsec_offload_ok()
[all …]
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_main.c6495 struct adapter *adap = netdev2adap(x->xso.dev); in cxgb4_xfrm_add_state()
6517 struct adapter *adap = netdev2adap(x->xso.dev); in cxgb4_xfrm_del_state()
6535 struct adapter *adap = netdev2adap(x->xso.dev); in cxgb4_xfrm_free_state()
6553 struct adapter *adap = netdev2adap(x->xso.dev); in cxgb4_ipsec_offload_ok()
6573 struct adapter *adap = netdev2adap(x->xso.dev); in cxgb4_advance_esn_state()