| /linux/drivers/net/can/dev/ |
| H A D | rx-offload.c | 9 #include <linux/can/rx-offload.h> 24 can_rx_offload_le(struct can_rx_offload *offload, in can_rx_offload_le() argument 27 if (offload->inc) in can_rx_offload_le() 34 can_rx_offload_inc(struct can_rx_offload *offload, unsigned int *val) in can_rx_offload_inc() argument 36 if (offload->inc) in can_rx_offload_inc() 44 struct can_rx_offload *offload = container_of(napi, in can_rx_offload_napi_poll() local 47 struct net_device *dev = offload->dev; in can_rx_offload_napi_poll() 53 (skb = skb_dequeue(&offload->skb_queue))) { in can_rx_offload_napi_poll() 69 if (!skb_queue_empty(&offload->skb_queue)) in can_rx_offload_napi_poll() 70 napi_schedule(&offload->napi); in can_rx_offload_napi_poll() [all …]
|
| /linux/drivers/spi/ |
| H A D | spi-offload.c | 14 * processor core to offload the work. 28 #include <linux/spi/offload/consumer.h> 29 #include <linux/spi/offload/provider.h> 30 #include <linux/spi/offload/types.h> 36 struct spi_offload *offload; member 57 * devm_spi_offload_alloc() - Allocate offload instance 61 * Offload providers should use this to allocate offload instances. 63 * Return: Pointer to new offload instance or error on failure. 68 struct spi_offload *offload; in devm_spi_offload_alloc() local 71 offload = devm_kzalloc(dev, sizeof(*offload), GFP_KERNEL); in devm_spi_offload_alloc() [all …]
|
| H A D | spi-axi-spi-engine.c | 22 #include <linux/spi/offload/provider.h> 177 struct spi_offload *offload; member 313 /* If we have an offload transfer, we can't rx to buffer */ in spi_engine_precompile_message() 314 if (msg->offload && xfer->rx_buf) in spi_engine_precompile_message() 346 * provide some optimization when using SPI offload. in spi_engine_precompile_message() 348 if (msg->offload) { in spi_engine_precompile_message() 349 struct spi_engine_offload *priv = msg->offload->priv; in spi_engine_precompile_message() 389 * As an optimization, SPI offload sets once this when the offload is in spi_engine_compile_message() 392 if (msg->offload) { in spi_engine_compile_message() 393 priv = msg->offload->priv; in spi_engine_compile_message() [all …]
|
| /linux/kernel/bpf/ |
| H A D | offload.c | 21 /* Protects offdevs, members of bpf_offload_netdev and offload members 86 netdev_warn(netdev, "failed to register for BPF offload\n"); in __bpf_offload_dev_netdev_register() 101 struct bpf_prog_offload *offload = prog->aux->offload; in __bpf_prog_offload_destroy() local 103 if (offload->dev_state) in __bpf_prog_offload_destroy() 104 offload->offdev->ops->destroy(prog); in __bpf_prog_offload_destroy() 106 list_del_init(&offload->offloads); in __bpf_prog_offload_destroy() 107 kfree(offload); in __bpf_prog_offload_destroy() 108 prog->aux->offload = NULL; in __bpf_prog_offload_destroy() 141 struct bpf_prog_offload *offload, *ptmp; in __bpf_offload_dev_netdev_unregister() local 160 list_for_each_entry(offload, &ondev->progs, offloads) in __bpf_offload_dev_netdev_unregister() [all …]
|
| /linux/tools/testing/selftests/drivers/net/netdevsim/ |
| H A D | macsec-offload.sh | 11 if ! ethtool -k $NSIM_NETDEV | grep -q 'macsec-hw-offload: on'; then 12 echo "SKIP: netdevsim doesn't support MACsec offload" 16 if ! ip link add link $NSIM_NETDEV $MACSEC_NETDEV type macsec offload mac 2>/dev/null; then 23 # test macsec offload API 26 ip link add link $NSIM_NETDEV "${MACSEC_NETDEV}" type macsec port 4 offload mac 29 …dd link $NSIM_NETDEV "${MACSEC_NETDEV}2" type macsec address "aa:bb:cc:dd:ee:ff" port 5 offload mac 32 ip link add link $NSIM_NETDEV "${MACSEC_NETDEV}3" type macsec sci abbacdde01020304 offload mac 35 ip link add link $NSIM_NETDEV "${MACSEC_NETDEV}4" type macsec port 8 offload mac 2> /dev/null 51 # can't disable macsec offload when SAs are configured 52 ip link set "${MACSEC_NETDEV}" type macsec offload off 2> /dev/null [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/ |
| H A D | dc_helper.c | 43 struct dc_reg_helper_state *offload, in submit_dmub_read_modify_write() argument 46 struct dmub_rb_cmd_read_modify_write *cmd_buf = &offload->cmd_data.read_modify_write; in submit_dmub_read_modify_write() 48 offload->should_burst_write = in submit_dmub_read_modify_write() 49 (offload->same_addr_count == (DMUB_READ_MODIFY_WRITE_SEQ__MAX - 1)); in submit_dmub_read_modify_write() 51 sizeof(struct dmub_cmd_read_modify_write_sequence) * offload->reg_seq_count; in submit_dmub_read_modify_write() 53 dc_wake_and_execute_dmub_cmd(ctx, &offload->cmd_data, DM_DMUB_WAIT_TYPE_NO_WAIT); in submit_dmub_read_modify_write() 57 offload->reg_seq_count = 0; in submit_dmub_read_modify_write() 58 offload->same_addr_count = 0; in submit_dmub_read_modify_write() 62 struct dc_reg_helper_state *offload, in submit_dmub_burst_write() argument 65 struct dmub_rb_cmd_burst_write *cmd_buf = &offload->cmd_data.burst_write; in submit_dmub_burst_write() [all …]
|
| /linux/Documentation/networking/xfrm/ |
| H A D | xfrm_device.rst | 18 Luckily, there are NICs that offer a hardware based IPsec offload which 21 hardware offload. 23 Right now, there are two types of hardware offload that kernel supports: 25 * IPsec crypto offload: 30 * IPsec packet offload: 38 Userland access to the offload is typically through a system such as 41 like this for crypto offload:: 47 offload dev eth4 dir in 49 and for packet offload:: 55 offload packet dev eth4 dir in [all …]
|
| /linux/include/linux/can/ |
| H A D | rx-offload.h | 3 * linux/can/rx-offload.h 18 struct sk_buff *(*mailbox_read)(struct can_rx_offload *offload, 35 struct can_rx_offload *offload); 37 struct can_rx_offload *offload, 40 struct can_rx_offload *offload, 42 int can_rx_offload_irq_offload_timestamp(struct can_rx_offload *offload, 44 int can_rx_offload_irq_offload_fifo(struct can_rx_offload *offload); 45 int can_rx_offload_queue_timestamp(struct can_rx_offload *offload, 47 unsigned int can_rx_offload_get_echo_skb_queue_timestamp(struct can_rx_offload *offload, 50 int can_rx_offload_queue_tail(struct can_rx_offload *offload, [all …]
|
| /linux/net/netfilter/ |
| H A D | nf_flow_table_offload.c | 798 const struct flow_offload_work *offload, in nf_flow_offload_rule_alloc() argument 801 const struct nf_flowtable *flowtable = offload->flowtable; in nf_flow_offload_rule_alloc() 803 struct flow_offload *flow = offload->flow; in nf_flow_offload_rule_alloc() 867 static int nf_flow_offload_alloc(const struct flow_offload_work *offload, in nf_flow_offload_alloc() argument 870 struct net *net = read_pnet(&offload->flowtable->net); in nf_flow_offload_alloc() 872 flow_rule[0] = nf_flow_offload_rule_alloc(net, offload, in nf_flow_offload_alloc() 877 flow_rule[1] = nf_flow_offload_rule_alloc(net, offload, in nf_flow_offload_alloc() 936 static int flow_offload_tuple_add(struct flow_offload_work *offload, in flow_offload_tuple_add() argument 940 return nf_flow_offload_tuple(offload->flowtable, offload->flow, in flow_offload_tuple_add() 942 offload->flowtable->priority, in flow_offload_tuple_add() [all …]
|
| /linux/Documentation/networking/ |
| H A D | segmentation-offloads.rst | 12 to take advantage of segmentation offload capabilities of various NICs. 15 * TCP Segmentation Offload - TSO 16 * UDP Fragmentation Offload - UFO 18 * Generic Segmentation Offload - GSO 19 * Generic Receive Offload - GRO 20 * Partial Generic Segmentation Offload - GSO_PARTIAL 24 TCP Segmentation Offload 34 offload. For this reason TSO is normally disabled if the Tx checksum 35 offload for a given device is disabled. 37 In order to support TCP segmentation offload it is necessary to populate [all …]
|
| H A D | tls-offload.rst | 4 Kernel TLS offload 10 Linux kernel provides TLS connection offload infrastructure. Once a TCP 24 * Packet-based NIC offload mode (``TLS_HW``) - the NIC handles crypto 28 (``ethtool`` flags ``tls-hw-tx-offload`` and ``tls-hw-rx-offload``). 29 * Full TCP NIC offload mode (``TLS_HW_RECORD``) - mode of operation where 36 offload opt-in or opt-out on per-connection basis is not currently supported. 48 for crypto offload based on the socket the packet is attached to, 63 .. kernel-figure:: tls-offload-layers.svg 64 :alt: TLS offload layers 82 network device is offload-capable and attempts the offload. In case offload [all …]
|
| H A D | checksum-offloads.rst | 12 take advantage of checksum offload capabilities of various NICs. 16 * TX Checksum Offload 17 * LCO: Local Checksum Offload 18 * RCO: Remote Checksum Offload 22 * RX Checksum Offload 26 TX Checksum Offload 61 A driver declares its offload capabilities in netdev->hw_features; see 71 The stack should, for the most part, assume that checksum offload is supported 74 function compares the offload features requested by the SKB (which may include 75 other offloads besides TX Checksum Offload) and, if they are not supported or [all …]
|
| H A D | nf_flowtable.rst | 9 also provides hardware offload support. The flowtable supports for the layer 3 16 path, from the second packet on, you might decide to offload the flow to the 60 |-----| | 'flow offload' rule | 105 The 'flow offload' action from the forward chain 'y' adds an entry to the 111 You can identify offloaded flows through the [OFFLOAD] tag when listing your 117 …rt=52728 dport=5201 src=192.168.10.2 dst=192.168.10.1 sport=5201 dport=52728 [OFFLOAD] mark=0 use=2 183 Hardware offload 186 If your network device provides hardware offload support, you can turn it on by 187 means of the 'offload' flag in your flowtable definition, e.g. 194 flags offload; [all …]
|
| /linux/include/linux/spi/offload/ |
| H A D | types.h | 20 /* Offload can be triggered by external hardware event. */ 22 /* Offload can record and then play back TX data when triggered. */ 24 /* Offload can get TX data from an external stream source. */ 26 /* Offload can send RX data to an external stream sink. */ 30 * struct spi_offload_config - offload configuration 32 * This is used to request an offload with specific configuration. 40 * struct spi_offload - offload instance 47 /** @ops: callbacks for offload support */ 82 * struct spi_offload_ops - callbacks implemented by offload providers 87 * given offload instance. [all …]
|
| /linux/Documentation/sound/soc/ |
| H A D | usb.rst | 77 The struct snd_soc_usb_device is created by the USB sound offload driver. 109 to be called by the USB offload driver residing in USB SND. 122 audio device removal. This is intended to be called by the USB offload 160 - ``dev``: USB device to look up offload path mapping 163 - ``direction``: direction to fetch offload routing information 165 - ``route``: mapping of sound card and pcm indexes for the offload path. This is 172 offload for the device. ``route`` may be a pointer to a kcontrol value output array, 264 parameters or settings to be accessed by the USB offload driver that 301 | --> Propagate connect event to USB offload driver in USB SND 320 In the case where the USB offload driver is unbound, while USB SND is ready, [all …]
|
| /linux/drivers/net/dsa/sja1105/ |
| H A D | sja1105_tas.c | 31 const struct tc_taprio_qopt_offload *offload; in sja1105_tas_set_runtime_params() local 33 offload = tas_data->offload[port]; in sja1105_tas_set_runtime_params() 34 if (!offload) in sja1105_tas_set_runtime_params() 39 if (max_cycle_time < offload->cycle_time) in sja1105_tas_set_runtime_params() 40 max_cycle_time = offload->cycle_time; in sja1105_tas_set_runtime_params() 41 if (latest_base_time < offload->base_time) in sja1105_tas_set_runtime_params() 42 latest_base_time = offload->base_time; in sja1105_tas_set_runtime_params() 43 if (earliest_base_time > offload->base_time) { in sja1105_tas_set_runtime_params() 44 earliest_base_time = offload->base_time; in sja1105_tas_set_runtime_params() 45 its_cycle_time = offload->cycle_time; in sja1105_tas_set_runtime_params() [all …]
|
| /linux/drivers/net/wireless/ath/ath12k/ |
| H A D | wow.c | 619 struct wmi_arp_ns_offload_arg *offload) in ath12k_wow_generate_ns_mc_addr() argument 623 for (i = 0; i < offload->ipv6_count; i++) { in ath12k_wow_generate_ns_mc_addr() 624 offload->self_ipv6_addr[i][0] = 0xff; in ath12k_wow_generate_ns_mc_addr() 625 offload->self_ipv6_addr[i][1] = 0x02; in ath12k_wow_generate_ns_mc_addr() 626 offload->self_ipv6_addr[i][11] = 0x01; in ath12k_wow_generate_ns_mc_addr() 627 offload->self_ipv6_addr[i][12] = 0xff; in ath12k_wow_generate_ns_mc_addr() 628 offload->self_ipv6_addr[i][13] = in ath12k_wow_generate_ns_mc_addr() 629 offload->ipv6_addr[i][13]; in ath12k_wow_generate_ns_mc_addr() 630 offload->self_ipv6_addr[i][14] = in ath12k_wow_generate_ns_mc_addr() 631 offload->ipv6_addr[i][14]; in ath12k_wow_generate_ns_mc_addr() [all …]
|
| /linux/include/linux/ |
| H A D | netdev_features.h | 29 NETIF_F_GRO_BIT, /* Generic receive offload */ 30 NETIF_F_LRO_BIT, /* large receive offload */ 61 NETIF_F_SCTP_CRC_BIT, /* SCTP checksum offload */ 63 NETIF_F_RXHASH_BIT, /* Receive hashing offload */ 64 NETIF_F_RXCSUM_BIT, /* Receive checksumming offload */ 74 NETIF_F_HW_TC_BIT, /* Offload TC infrastructure */ 75 NETIF_F_HW_ESP_BIT, /* Hardware ESP transformation offload */ 76 NETIF_F_HW_ESP_TX_CSUM_BIT, /* ESP with TX checksum offload */ 77 NETIF_F_RX_UDP_TUNNEL_PORT_BIT, /* Offload of RX port for UDP tunnels */ 78 NETIF_F_HW_TLS_TX_BIT, /* Hardware TLS TX offload */ [all …]
|
| /linux/drivers/net/ethernet/netronome/nfp/flower/ |
| H A D | qos_conf.c | 127 "Offload not supported when exceed action is not drop"); in nfp_policer_validate() 135 "Offload not supported when conform action is not continue or ok"); in nfp_policer_validate() 142 "Offload not supported when conform action is not pipe or ok"); in nfp_policer_validate() 150 "Offload not supported when conform action is ok, but action is not last"); in nfp_policer_validate() 157 "Offload not supported when peakrate/avrate/overhead is configured"); in nfp_policer_validate() 185 …NL_SET_ERR_MSG_MOD(extack, "unsupported offload: qos rate limit offload not supported on higher le… in nfp_flower_install_rate_limiter() 194 …NL_SET_ERR_MSG_MOD(extack, "unsupported offload: qos rate limit offload not supported on shared bl… in nfp_flower_install_rate_limiter() 199 …NL_SET_ERR_MSG_MOD(extack, "unsupported offload: qos rate limit offload not supported on non-VF po… in nfp_flower_install_rate_limiter() 206 "unsupported offload: qos rate limit offload only support action number 1 or 2"); in nfp_flower_install_rate_limiter() 212 "unsupported offload: qos rate limit offload requires a single action"); in nfp_flower_install_rate_limiter() [all …]
|
| H A D | action.c | 42 /* BOS is optional in the TC action but required for offload. */ in nfp_fl_push_mpls() 46 NL_SET_ERR_MSG_MOD(extack, "unsupported offload: BOS field must explicitly be set for MPLS push"); in nfp_fl_push_mpls() 147 …NL_SET_ERR_MSG_MOD(extack, "unsupported offload: maximum allowed action list size exceeded at LAG … in nfp_fl_pre_lag() 189 NL_SET_ERR_MSG_MOD(extack, "unsupported offload: invalid egress interface for mirred action"); in nfp_fl_output() 198 …NL_SET_ERR_MSG_MOD(extack, "unsupported offload: egress interface does not match the required tunn… in nfp_fl_output() 203 …NL_SET_ERR_MSG_MOD(extack, "unsupported offload: cannot offload more than one tunnel mirred output… in nfp_fl_output() 225 …NL_SET_ERR_MSG_MOD(extack, "unsupported offload: pre-tunnel rules not supported in loaded firmware… in nfp_fl_output() 230 …NL_SET_ERR_MSG_MOD(extack, "unsupported offload: pre-tunnel rules require single egress dev and pt… in nfp_fl_output() 244 …NL_SET_ERR_MSG_MOD(extack, "unsupported offload: ingress and egress interfaces are on different de… in nfp_fl_output() 250 NL_SET_ERR_MSG_MOD(extack, "unsupported offload: egress interface is not an nfp port"); in nfp_fl_output() [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | bpf_offload.py | 523 args = "hw-tc-offload %s" % ("on" if enable else "off") 633 start_test("Test multi-attachment XDP - %s + offload..." % 635 sim.set_xdp(obj, "offload") 646 "Offload program not reported after other activated") 651 "Offload ID changed after loading other program") 654 ret, _, err = sim.set_xdp(obj, "offload", fail=False, include_stderr=True) 664 sim.unset_xdp("offload") 672 "Offload program not reported after other activated") 675 fail(offloaded != "0", "Offload ID reported with only other program left") 678 sim.set_xdp(obj, "offload") [all …]
|
| /linux/drivers/iio/adc/ |
| H A D | ad7606_spi.c | 13 #include <linux/spi/offload/consumer.h> 14 #include <linux/spi/offload/provider.h> 29 struct spi_offload *offload; member 167 * Using SPI offload, storagebits are related to the spi-engine in ad7606_spi_offload_buffer_postenable() 175 bus_data->offload_msg.offload = bus_data->offload; in ad7606_spi_offload_buffer_postenable() 179 dev_err(st->dev, "failed to prepare offload, err: %d\n", ret); in ad7606_spi_offload_buffer_postenable() 183 ret = spi_offload_trigger_enable(bus_data->offload, in ad7606_spi_offload_buffer_postenable() 196 spi_offload_trigger_disable(bus_data->offload, in ad7606_spi_offload_buffer_postenable() 215 spi_offload_trigger_disable(bus_data->offload, in ad7606_spi_offload_buffer_predisable() 292 bus_data->offload = devm_spi_offload_get(dev, spi, in ad7606_spi_offload_probe() [all …]
|
| /linux/drivers/usb/core/ |
| H A D | offload.c | 4 * offload.c - USB offload related functions 19 * Incrementing the offload_usage of a usb_device indicates that offload is 22 * management policy based on offload activity. 63 * management policy based on offload activity. 101 * usb_offload_check - check offload activities on a USB device 102 * @udev: the USB device to check its offload activity. 104 * Check if there are any offload activity on the USB device right now. This 112 * Returns true on any offload activity, false otherwise. 142 * ensures that offload activities cannot be started or stopped during critical
|
| /linux/drivers/net/ethernet/netronome/ |
| H A D | Kconfig | 33 bool "NFP4000/NFP6000 TC Flower offload support" 39 Enable driver support for TC Flower offload on NFP4000 and NFP6000. 40 Say Y, if you are planning to make use of TC Flower offload 42 TC Flower offload requires specific FW to work. 58 bool "NFP IPsec crypto offload support" 63 Enable driver support IPsec crypto offload on NFP NIC. 65 offload. NOTE that IPsec crypto offload on NFP NIC
|
| /linux/tools/testing/selftests/drivers/net/bonding/ |
| H A D | bond_ipsec_offload.sh | 4 # IPsec over bonding offload test: 19 # offload dev bond0 dir out 78 # setup netdevsim since dummy/veth dev doesn't have offload support 81 echo "SKIP: can't load netdevsim for ipsec offload" 121 offload dev bond0 dir out 127 offload dev bond0 dir in 129 # does offload show up in ip output 130 lines=$(ip -n "$ns" x s list | grep -c "crypto offload parameters: dev bond0 dir") 132 check_err 1 "bond_ipsec_offload SA offload missing from list output" 140 # start Offload testing [all …]
|