/kernel/linux/linux-5.10/net/xfrm/ |
D | xfrm_device.c | 120 if (xo->flags & XFRM_GRO || x->xso.flags & XFRM_OFFLOAD_INBOUND) in validate_xmit_xfrm() 124 if ((x->xso.dev != dev) && (x->xso.real_dev == dev)) in validate_xmit_xfrm() 137 if (skb_is_gso(skb) && unlikely(x->xso.dev != dev)) { in validate_xmit_xfrm() 215 struct xfrm_state_offload *xso = &x->xso; in xfrm_dev_state_add() local 249 xso->dev = NULL; in xfrm_dev_state_add() 256 xso->dev = NULL; in xfrm_dev_state_add() 261 xso->dev = dev; in xfrm_dev_state_add() 262 xso->real_dev = dev; in xfrm_dev_state_add() 263 xso->num_exthdrs = 1; in xfrm_dev_state_add() 264 xso->flags = xuo->flags; in xfrm_dev_state_add() [all …]
|
D | xfrm_state.c | 729 struct xfrm_state_offload *xso; in xfrm_dev_state_flush_secctx_check() local 732 xso = &x->xso; in xfrm_dev_state_flush_secctx_check() 734 if (xso->dev == dev && in xfrm_dev_state_flush_secctx_check() 813 struct xfrm_state_offload *xso; in xfrm_dev_state_flush() local 816 xso = &x->xso; in xfrm_dev_state_flush() 818 if (!xfrm_state_kern(x) && xso->dev == dev) { in xfrm_dev_state_flush()
|
D | xfrm_output.c | 611 if (x->xso.dev && x->xso.dev->features & NETIF_F_HW_ESP_TX_CSUM) in xfrm_output()
|
D | xfrm_user.c | 847 static int copy_user_offload(struct xfrm_state_offload *xso, struct sk_buff *skb) in copy_user_offload() argument 858 xuo->ifindex = xso->dev->ifindex; in copy_user_offload() 859 xuo->flags = xso->flags; in copy_user_offload() 971 if(x->xso.dev) in copy_to_user_state_extra() 972 ret = copy_user_offload(&x->xso, skb); in copy_to_user_state_extra() 2928 if (x->xso.dev) in xfrm_sa_len()
|
/kernel/linux/linux-5.10/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.flags & XFRM_OFFLOAD_INBOUND) { 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbevf/ |
D | ipsec.c | 28 sam->flags = xs->xso.flags; 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.flags & XFRM_OFFLOAD_INBOUND) { 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.flags & XFRM_OFFLOAD_INBOUND) { 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 …]
|
/kernel/linux/linux-5.10/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.flags & XFRM_OFFLOAD_INBOUND) { 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.flags & XFRM_OFFLOAD_INBOUND) { 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 …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec.c | 52 sa = (struct mlx5e_ipsec_sa_entry *)x->xso.offload_handle; in to_ipsec_sa_entry() 193 attrs->action = (!(x->xso.flags & XFRM_OFFLOAD_INBOUND)) ? in mlx5e_ipsec_build_accel_xfrm_attrs() 212 struct net_device *netdev = x->xso.real_dev; in mlx5e_xfrm_validate_state() 311 struct net_device *netdev = x->xso.real_dev; in mlx5e_xfrm_add_state() 360 if (x->xso.flags & XFRM_OFFLOAD_INBOUND) { in mlx5e_xfrm_add_state() 369 x->xso.offload_handle = (unsigned long)sa_entry; in mlx5e_xfrm_add_state() 392 if (x->xso.flags & XFRM_OFFLOAD_INBOUND) in mlx5e_xfrm_del_state() 399 struct mlx5e_priv *priv = netdev_priv(x->xso.dev); in mlx5e_xfrm_free_state()
|
D | ipsec_rxtx.c | 287 if (unlikely(!x->xso.offload_handle || in mlx5e_ipsec_tx_build_eseg() 337 if (unlikely(!x->xso.offload_handle || in mlx5e_ipsec_handle_tx_skb() 358 sa_entry = (struct mlx5e_ipsec_sa_entry *)x->xso.offload_handle; in mlx5e_ipsec_handle_tx_skb() 508 if (x && x->xso.offload_handle) in mlx5e_ipsec_feature_check()
|
/kernel/linux/linux-5.10/include/net/ |
D | xfrm.h | 243 struct xfrm_state_offload xso; member 1863 struct xfrm_state_offload *xso = &x->xso; in xfrm_dev_state_advance_esn() local 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() 1878 if (!x->xso.offload_handle && !xdst->child->xfrm) in xfrm_dst_offload_ok() 1880 if (x->xso.offload_handle && (x->xso.dev == xfrm_dst_path(dst)->dev) && in xfrm_dst_offload_ok() 1889 struct xfrm_state_offload *xso = &x->xso; in xfrm_dev_state_delete() local 1891 if (xso->dev) in xfrm_dev_state_delete() 1892 xso->dev->xfrmdev_ops->xdo_dev_state_delete(x); in xfrm_dev_state_delete() 1897 struct xfrm_state_offload *xso = &x->xso; in xfrm_dev_state_free() local [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/ |
D | chcr_ipsec.c | 299 x->xso.offload_handle = (unsigned long)sa_entry; in ch_ipsec_xfrm_add_state() 308 if (!x->xso.offload_handle) in ch_ipsec_xfrm_del_state() 316 if (!x->xso.offload_handle) in ch_ipsec_xfrm_free_state() 319 sa_entry = (struct ipsec_sa_entry *)x->xso.offload_handle; in ch_ipsec_xfrm_free_state() 341 if (!x->xso.offload_handle) in ch_ipsec_advance_esn_state() 720 if (!x->xso.offload_handle) in ch_ipsec_xmit() 723 sa_entry = (struct ipsec_sa_entry *)x->xso.offload_handle; in ch_ipsec_xmit()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | esp4_offload.c | 219 !(features & NETIF_F_HW_ESP)) || x->xso.dev != skb->dev) in esp4_gso_segment() 267 x->xso.dev != skb->dev) { in esp_xmit()
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | esp6_offload.c | 256 if (!(features & NETIF_F_HW_ESP) || x->xso.dev != skb->dev) in esp6_gso_segment() 301 if (!(features & NETIF_F_HW_ESP) || x->xso.dev != skb->dev) { in esp6_xmit()
|
/kernel/linux/linux-5.10/Documentation/networking/ |
D | xfrm_device.rst | 89 xs->xso.offload_handle = context; 104 context = xs->xso.offload_handle;
|
/kernel/linux/linux-5.10/drivers/net/bonding/ |
D | bond_main.c | 387 struct net_device *bond_dev = xs->xso.dev; in bond_ipsec_add_sa() 417 xs->xso.real_dev = slave->dev; in bond_ipsec_add_sa() 458 ipsec->xs->xso.real_dev = slave->dev; in bond_ipsec_add_sa_all() 461 ipsec->xs->xso.real_dev = NULL; in bond_ipsec_add_sa_all() 475 struct net_device *bond_dev = xs->xso.dev; in bond_ipsec_del_sa() 490 if (!xs->xso.real_dev) in bond_ipsec_del_sa() 493 WARN_ON(xs->xso.real_dev != slave->dev); in bond_ipsec_del_sa() 531 if (!ipsec->xs->xso.real_dev) in bond_ipsec_del_sa_all() 543 ipsec->xs->xso.real_dev = NULL; in bond_ipsec_del_sa_all() 556 struct net_device *bond_dev = xs->xso.dev; in bond_ipsec_offload_ok() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_main.c | 6505 struct adapter *adap = netdev2adap(x->xso.dev); in cxgb4_xfrm_add_state() 6527 struct adapter *adap = netdev2adap(x->xso.dev); in cxgb4_xfrm_del_state() 6545 struct adapter *adap = netdev2adap(x->xso.dev); in cxgb4_xfrm_free_state() 6563 struct adapter *adap = netdev2adap(x->xso.dev); in cxgb4_ipsec_offload_ok() 6583 struct adapter *adap = netdev2adap(x->xso.dev); in cxgb4_advance_esn_state()
|