Home
last modified time | relevance | path

Searched refs:offloads (Results 1 – 25 of 54) sorted by relevance

123

/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
Dingress_ofld.c43 if (vport->ingress.offloads.modify_metadata_rule) { in esw_acl_ingress_prio_tag_create()
45 flow_act.modify_hdr = vport->ingress.offloads.modify_metadata; in esw_acl_ingress_prio_tag_create()
82 vport->ingress.offloads.modify_metadata = in esw_acl_ingress_mod_metadata_create()
85 if (IS_ERR(vport->ingress.offloads.modify_metadata)) { in esw_acl_ingress_mod_metadata_create()
86 err = PTR_ERR(vport->ingress.offloads.modify_metadata); in esw_acl_ingress_mod_metadata_create()
94 flow_act.modify_hdr = vport->ingress.offloads.modify_metadata; in esw_acl_ingress_mod_metadata_create()
95 flow_act.fg = vport->ingress.offloads.metadata_allmatch_grp; in esw_acl_ingress_mod_metadata_create()
96 vport->ingress.offloads.modify_metadata_rule = in esw_acl_ingress_mod_metadata_create()
99 if (IS_ERR(vport->ingress.offloads.modify_metadata_rule)) { in esw_acl_ingress_mod_metadata_create()
100 err = PTR_ERR(vport->ingress.offloads.modify_metadata_rule); in esw_acl_ingress_mod_metadata_create()
[all …]
Degress_ofld.c11 if (!vport->egress.offloads.fwd_rule) in esw_acl_egress_ofld_fwd2vport_destroy()
14 mlx5_del_flow_rules(vport->egress.offloads.fwd_rule); in esw_acl_egress_ofld_fwd2vport_destroy()
15 vport->egress.offloads.fwd_rule = NULL; in esw_acl_egress_ofld_fwd2vport_destroy()
21 xa_load(&vport->egress.offloads.bounce_rules, rule_index); in esw_acl_egress_ofld_bounce_rule_destroy()
27 xa_erase(&vport->egress.offloads.bounce_rules, rule_index); in esw_acl_egress_ofld_bounce_rule_destroy()
35 xa_for_each(&vport->egress.offloads.bounce_rules, i, bounce_rule) { in esw_acl_egress_ofld_bounce_rules_destroy()
37 xa_erase(&vport->egress.offloads.bounce_rules, i); in esw_acl_egress_ofld_bounce_rules_destroy()
56 vport->egress.offloads.fwd_rule = in esw_acl_egress_ofld_fwd2vport_create()
59 if (IS_ERR(vport->egress.offloads.fwd_rule)) { in esw_acl_egress_ofld_fwd2vport_create()
60 err = PTR_ERR(vport->egress.offloads.fwd_rule); in esw_acl_egress_ofld_fwd2vport_create()
[all …]
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch_offloads.c56 xa_for_each(&((esw)->offloads.vport_reps), i, rep)
78 return xa_load(&esw->offloads.vport_reps, vport_num); in mlx5_eswitch_get_rep()
433 if (esw->offloads.ft_ipsec_tx_pol && in esw_setup_uplink_fwd_ipsec_needed()
450 if (!esw->offloads.ft_ipsec_tx_pol) in esw_flow_dests_fwd_ipsec_check()
495 dest[dest_idx].ft = esw->offloads.ft_ipsec_tx_pol; in esw_setup_dest_fwd_ipsec()
764 atomic64_inc(&esw->offloads.num_flows); in mlx5_eswitch_add_offloaded_rule()
850 atomic64_inc(&esw->offloads.num_flows); in mlx5_eswitch_add_fwd_rule()
885 atomic64_dec(&esw->offloads.num_flows); in __mlx5_eswitch_del_rule()
987 on_esw == from_esw && on_esw->offloads.ft_ipsec_tx_pol) { in mlx5_eswitch_add_send_to_vport_rule()
988 dest.ft = on_esw->offloads.ft_ipsec_tx_pol; in mlx5_eswitch_add_send_to_vport_rule()
[all …]
Deswitch_offloads_termtbl.c122 mutex_lock(&esw->offloads.termtbl_mutex); in mlx5_eswitch_termtbl_get_create()
124 hash_for_each_possible(esw->offloads.termtbl_tbl, tt, in mlx5_eswitch_termtbl_get_create()
151 hash_add(esw->offloads.termtbl_tbl, &tt->termtbl_hlist, hash_key); in mlx5_eswitch_termtbl_get_create()
154 mutex_unlock(&esw->offloads.termtbl_mutex); in mlx5_eswitch_termtbl_get_create()
158 mutex_unlock(&esw->offloads.termtbl_mutex); in mlx5_eswitch_termtbl_get_create()
166 mutex_lock(&esw->offloads.termtbl_mutex); in mlx5_eswitch_termtbl_put()
169 mutex_unlock(&esw->offloads.termtbl_mutex); in mlx5_eswitch_termtbl_put()
DKconfig75 Switchdev mode (eswitch offloads).
82 mlx5 ConnectX offloads support for Ethernet Bridging (BRIDGE).
92 mlx5 ConnectX offloads support for TC classifier action (NET_CLS_ACT),
99 If set to N, TC offloads in both NIC and switchdev modes will be disabled.
138 bool "Mellanox 5th generation network adapters (connectX series) IPoIB offloads support"
141 MLX5 IPoIB offloads & acceleration support.
Deswitch.c1875 mutex_init(&esw->offloads.encap_tbl_lock); in mlx5_eswitch_init()
1876 hash_init(esw->offloads.encap_tbl); in mlx5_eswitch_init()
1877 mutex_init(&esw->offloads.decap_tbl_lock); in mlx5_eswitch_init()
1878 hash_init(esw->offloads.decap_tbl); in mlx5_eswitch_init()
1879 mlx5e_mod_hdr_tbl_init(&esw->offloads.mod_hdr); in mlx5_eswitch_init()
1880 atomic64_set(&esw->offloads.num_flows, 0); in mlx5_eswitch_init()
1881 ida_init(&esw->offloads.vport_metadata_ida); in mlx5_eswitch_init()
1882 xa_init_flags(&esw->offloads.vhca_map, XA_FLAGS_ALLOC); in mlx5_eswitch_init()
1889 esw->offloads.inline_mode = MLX5_INLINE_MODE_NONE; in mlx5_eswitch_init()
1892 esw->offloads.encap = DEVLINK_ESWITCH_ENCAP_MODE_BASIC; in mlx5_eswitch_init()
[all …]
Deswitch.h87 ((esw)->fdb_table.offloads.esw_chains_priv)
123 } offloads; member
147 } offloads; member
267 } offloads; member
373 struct mlx5_esw_offload offloads; member
869 return esw->fdb_table.offloads.slow_fdb; in mlx5_eswitch_get_slow_fdb()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dvporttbl.c27 if (esw->offloads.encap != DEVLINK_ESWITCH_ENCAP_MODE_NONE) in esw_vport_tbl_init()
73 hash_for_each_possible(esw->fdb_table.offloads.vports.table, e, hlist, key) in esw_vport_tbl_lookup()
90 mutex_lock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_get()
119 hash_add(esw->fdb_table.offloads.vports.table, &e->hlist, hkey); in mlx5_esw_vporttbl_get()
121 mutex_unlock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_get()
127 mutex_unlock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_get()
138 mutex_lock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_put()
149 mutex_unlock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_put()
Dindir_table.c293 hash_add(esw->fdb_table.offloads.indir->table, &e->hlist, in mlx5_esw_indir_table_entry_create()
316 hash_for_each_possible(esw->fdb_table.offloads.indir->table, e, hlist, key) in mlx5_esw_indir_table_entry_lookup()
330 mutex_lock(&esw->fdb_table.offloads.indir->lock); in mlx5_esw_indir_table_get()
348 mutex_unlock(&esw->fdb_table.offloads.indir->lock); in mlx5_esw_indir_table_get()
352 mutex_unlock(&esw->fdb_table.offloads.indir->lock); in mlx5_esw_indir_table_get()
361 mutex_lock(&esw->fdb_table.offloads.indir->lock); in mlx5_esw_indir_table_put()
381 mutex_unlock(&esw->fdb_table.offloads.indir->lock); in mlx5_esw_indir_table_put()
Dipsec_fs.c153 xa_for_each(&esw->offloads.vport_reps, i, rep) { in mlx5_esw_ipsec_restore_dest_uplink()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_encap.c412 mutex_lock(&esw->offloads.encap_tbl_lock); in mlx5e_tc_update_neigh_used_value()
429 mutex_unlock(&esw->offloads.encap_tbl_lock); in mlx5e_tc_update_neigh_used_value()
487 if (!refcount_dec_and_mutex_lock(&e->refcnt, &esw->offloads.encap_tbl_lock)) in mlx5e_encap_put()
491 mutex_unlock(&esw->offloads.encap_tbl_lock); in mlx5e_encap_put()
500 lockdep_assert_held(&esw->offloads.encap_tbl_lock); in mlx5e_encap_put_locked()
513 if (!refcount_dec_and_mutex_lock(&d->refcnt, &esw->offloads.decap_tbl_lock)) in mlx5e_decap_put()
516 mutex_unlock(&esw->offloads.decap_tbl_lock); in mlx5e_decap_put()
544 mutex_lock(&esw->offloads.encap_tbl_lock); in mlx5e_detach_encap()
548 mutex_unlock(&esw->offloads.encap_tbl_lock); in mlx5e_detach_encap()
553 mutex_unlock(&esw->offloads.encap_tbl_lock); in mlx5e_detach_encap()
[all …]
/linux-6.6.21/kernel/bpf/
Doffload.c115 list_del_init(&offload->offloads); in __bpf_prog_offload_destroy()
141 list_del_init(&offmap->offloads); in __bpf_map_offload_destroy()
169 list_for_each_entry(offload, &ondev->progs, offloads) in __bpf_offload_dev_netdev_unregister()
173 list_for_each_entry(offmap, &ondev->maps, offloads) in __bpf_offload_dev_netdev_unregister()
177 list_for_each_entry_safe(offload, ptmp, &ondev->progs, offloads) in __bpf_offload_dev_netdev_unregister()
179 list_for_each_entry_safe(offmap, mtmp, &ondev->maps, offloads) in __bpf_offload_dev_netdev_unregister()
220 list_add_tail(&offload->offloads, &ondev->progs); in __bpf_prog_dev_bound_init()
382 list_del_init(&prog->aux->offload->offloads); in bpf_prog_dev_bound_destroy()
542 list_add_tail(&offmap->offloads, &ondev->maps); in bpf_map_offload_map_alloc()
/linux-6.6.21/net/ipv4/
Dfou_core.c235 const struct net_offload __rcu **offloads; in fou_gro_receive() local
251 offloads = NAPI_GRO_CB(skb)->is_ipv6 ? inet6_offloads : inet_offloads; in fou_gro_receive()
252 ops = rcu_dereference(offloads[proto]); in fou_gro_receive()
265 const struct net_offload __rcu **offloads; in fou_gro_complete() local
270 offloads = NAPI_GRO_CB(skb)->is_ipv6 ? inet6_offloads : inet_offloads; in fou_gro_complete()
271 ops = rcu_dereference(offloads[proto]); in fou_gro_complete()
310 const struct net_offload __rcu **offloads; in gue_gro_receive() local
434 offloads = NAPI_GRO_CB(skb)->is_ipv6 ? inet6_offloads : inet_offloads; in gue_gro_receive()
435 ops = rcu_dereference(offloads[proto]); in gue_gro_receive()
451 const struct net_offload __rcu **offloads; in gue_gro_complete() local
[all …]
/linux-6.6.21/Documentation/networking/
Dindex.rst34 checksum-offloads
35 segmentation-offloads
Dvxlan.rst63 offloads (most commonly VXLAN features, but support for a particular
72 perform protocol-aware offloads, like checksum validation offload of
73 inner frames (only needed by NICs without protocol-agnostic offloads)
Dsegmentation-offloads.rst68 In addition to the offloads described above it is possible for a frame to
111 deal with cases where device drivers cannot perform the offloads described
141 offloads or tunnel offloads with checksum to still make use of segmentation.
158 This requires a different approach to other offloads, as SCTP packets
/linux-6.6.21/drivers/net/hyperv/
Drndis_filter.c1354 struct ndis_offload_params offloads; in rndis_netdev_set_hwcaps() local
1364 memset(&offloads, 0, sizeof(struct ndis_offload_params)); in rndis_netdev_set_hwcaps()
1367 offloads.ip_v4_csum = NDIS_OFFLOAD_PARAMETERS_TX_RX_DISABLED; in rndis_netdev_set_hwcaps()
1383 offloads.tcp_ip_v4_csum = NDIS_OFFLOAD_PARAMETERS_TX_RX_ENABLED; in rndis_netdev_set_hwcaps()
1386 offloads.lso_v2_ipv4 = NDIS_OFFLOAD_PARAMETERS_LSOV2_ENABLED; in rndis_netdev_set_hwcaps()
1394 offloads.udp_ip_v4_csum = NDIS_OFFLOAD_PARAMETERS_TX_RX_ENABLED; in rndis_netdev_set_hwcaps()
1402 offloads.tcp_ip_v6_csum = NDIS_OFFLOAD_PARAMETERS_TX_RX_ENABLED; in rndis_netdev_set_hwcaps()
1407 offloads.lso_v2_ipv6 = NDIS_OFFLOAD_PARAMETERS_LSOV2_ENABLED; in rndis_netdev_set_hwcaps()
1415 offloads.udp_ip_v6_csum = NDIS_OFFLOAD_PARAMETERS_TX_RX_ENABLED; in rndis_netdev_set_hwcaps()
1424 offloads.rsc_ip_v4 = NDIS_OFFLOAD_PARAMETERS_RSC_ENABLED; in rndis_netdev_set_hwcaps()
[all …]
/linux-6.6.21/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/
Dkconfig.rst12 | Basic features, ethernet net device rx/tx offloads and XDP, are available with the most basic fla…
32 …ng this option will allow basic ethernet netdevice support with all of the standard rx/tx offloads.
44 | IPoIB offloads & acceleration support.
91 | 2) :ref:`Switchdev mode (eswitch offloads) <switchdev>`.
156 | offloads depending on the actual device used and firmware version.
Dtracepoints.rst15 tc and eswitch offloads tracepoints:
52 Bridge offloads tracepoints:
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_virtchnl.c2738 supported_caps = &caps->offloads.stripping_support; in ice_vc_set_dvm_caps()
2744 supported_caps = &caps->offloads.insertion_support; in ice_vc_set_dvm_caps()
2750 caps->offloads.ethertype_init = VIRTCHNL_VLAN_ETHERTYPE_8100; in ice_vc_set_dvm_caps()
2751 caps->offloads.ethertype_match = in ice_vc_set_dvm_caps()
2764 supported_caps = &caps->offloads.stripping_support; in ice_vc_set_dvm_caps()
2775 supported_caps = &caps->offloads.insertion_support; in ice_vc_set_dvm_caps()
2786 caps->offloads.ethertype_init = VIRTCHNL_VLAN_ETHERTYPE_8100; in ice_vc_set_dvm_caps()
2788 caps->offloads.ethertype_match = in ice_vc_set_dvm_caps()
2816 supported_caps = &caps->offloads.stripping_support; in ice_vc_set_svm_caps()
2820 supported_caps = &caps->offloads.insertion_support; in ice_vc_set_svm_caps()
[all …]
/linux-6.6.21/Documentation/infiniband/
Dipoib.rst57 Stateless offloads
60 If the IB HW supports IPoIB stateless offloads, IPoIB advertises
68 Stateless offloads are supported only in datagram mode.
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dint_port.c93 flow_rule = mlx5_add_flow_rules(esw->offloads.ft_offloads, spec, in mlx5e_int_port_create_rx_rule()
182 ctx = esw->offloads.reg_c0_obj_pool; in mlx5e_int_port_add()
233 ctx = esw->offloads.reg_c0_obj_pool; in mlx5e_int_port_remove()
Dsample.c525 err = mapping_add(esw->offloads.reg_c0_obj_pool, &restore_obj, &obj_id); in mlx5e_tc_sample_offload()
577 mapping_remove(esw->offloads.reg_c0_obj_pool, obj_id); in mlx5e_tc_sample_offload()
607 mapping_remove(esw->offloads.reg_c0_obj_pool, attr->sample_attr.restore_obj_id); in mlx5e_tc_sample_unoffload()
/linux-6.6.21/Documentation/networking/device_drivers/ethernet/freescale/
Dgianfar.rst16 in hardware. The Linux kernel only offloads the TCP and UDP
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
Dtc.c101 mutex_lock(&esw->offloads.encap_tbl_lock); in mlx5e_rep_update_flows()
127 mutex_unlock(&esw->offloads.encap_tbl_lock); in mlx5e_rep_update_flows()
709 mapping_ctx = esw->offloads.reg_c0_obj_pool; in mlx5e_rep_tc_receive()

123