/linux-6.1.9/net/xfrm/ |
D | xfrm_device.c | 132 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 …]
|
D | xfrm_state.c | 754 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()
|
D | xfrm_output.c | 748 if (x->xso.dev && x->xso.dev->features & NETIF_F_HW_ESP_TX_CSUM) in xfrm_output()
|
D | xfrm_user.c | 932 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/ |
D | ipsec.c | 28 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/ |
D | ipsec.c | 88 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/ |
D | ipsec.c | 45 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()
|
D | ipsec_rxtx.c | 233 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()
|
D | ipsec_rxtx.h | 97 if (!x || !x->xso.offload_handle) in mlx5e_ipsec_feature_check()
|
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ipsec.c | 430 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/ |
D | xfrm.h | 254 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/ |
D | chcr_ipsec.c | 297 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/ |
D | esp4_offload.c | 224 !(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/ |
D | esp6_offload.c | 262 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/ |
D | xfrm_device.rst | 89 xs->xso.offload_handle = context; 104 context = xs->xso.offload_handle;
|
/linux-6.1.9/drivers/net/bonding/ |
D | bond_main.c | 425 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/ |
D | cxgb4_main.c | 6495 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()
|