Home
last modified time | relevance | path

Searched full:offload (Results 1 – 25 of 1349) sorted by relevance

12345678910>>...54

/kernel/linux/linux-4.19/drivers/net/can/
Drx-offload.c19 #include <linux/can/rx-offload.h>
32 static inline bool can_rx_offload_le(struct can_rx_offload *offload, unsigned int a, unsigned int b) in can_rx_offload_le() argument
34 if (offload->inc) in can_rx_offload_le()
40 static inline unsigned int can_rx_offload_inc(struct can_rx_offload *offload, unsigned int *val) in can_rx_offload_inc() argument
42 if (offload->inc) in can_rx_offload_inc()
50 struct can_rx_offload *offload = container_of(napi, struct can_rx_offload, napi); in can_rx_offload_napi_poll() local
51 struct net_device *dev = offload->dev; in can_rx_offload_napi_poll()
57 (skb = skb_dequeue(&offload->skb_queue))) { in can_rx_offload_napi_poll()
70 if (!skb_queue_empty(&offload->skb_queue)) in can_rx_offload_napi_poll()
71 napi_reschedule(&offload->napi); in can_rx_offload_napi_poll()
[all …]
/kernel/linux/linux-5.10/drivers/net/can/dev/
Drx-offload.c9 #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()
66 if (!skb_queue_empty(&offload->skb_queue)) in can_rx_offload_napi_poll()
67 napi_reschedule(&offload->napi); in can_rx_offload_napi_poll()
[all …]
/kernel/linux/linux-5.10/kernel/bpf/
Doffload.c29 /* Protects offdevs, members of bpf_offload_netdev and offload members
83 struct bpf_prog_offload *offload; in bpf_prog_offload_init() local
93 offload = kzalloc(sizeof(*offload), GFP_USER); in bpf_prog_offload_init()
94 if (!offload) in bpf_prog_offload_init()
97 offload->prog = prog; in bpf_prog_offload_init()
99 offload->netdev = dev_get_by_index(current->nsproxy->net_ns, in bpf_prog_offload_init()
101 err = bpf_dev_offload_check(offload->netdev); in bpf_prog_offload_init()
106 ondev = bpf_offload_find_netdev(offload->netdev); in bpf_prog_offload_init()
111 offload->offdev = ondev->offdev; in bpf_prog_offload_init()
112 prog->aux->offload = offload; in bpf_prog_offload_init()
[all …]
/kernel/linux/linux-5.10/include/linux/can/
Drx-offload.h3 * linux/can/rx-offload.h
18 struct sk_buff *(*mailbox_read)(struct can_rx_offload *offload,
34 struct can_rx_offload *offload);
36 struct can_rx_offload *offload,
39 struct can_rx_offload *offload,
41 int can_rx_offload_irq_offload_timestamp(struct can_rx_offload *offload,
43 int can_rx_offload_irq_offload_fifo(struct can_rx_offload *offload);
44 int can_rx_offload_queue_sorted(struct can_rx_offload *offload,
46 unsigned int can_rx_offload_get_echo_skb(struct can_rx_offload *offload,
48 int can_rx_offload_queue_tail(struct can_rx_offload *offload,
[all …]
/kernel/linux/linux-4.19/include/linux/can/
Drx-offload.h2 * linux/can/rx-offload.h
26 unsigned int (*mailbox_read)(struct can_rx_offload *offload, struct can_frame *cf,
40 int can_rx_offload_add_timestamp(struct net_device *dev, struct can_rx_offload *offload);
41 int can_rx_offload_add_fifo(struct net_device *dev, struct can_rx_offload *offload, unsigned int we…
42 int can_rx_offload_irq_offload_timestamp(struct can_rx_offload *offload, u64 reg);
43 int can_rx_offload_irq_offload_fifo(struct can_rx_offload *offload);
44 int can_rx_offload_queue_sorted(struct can_rx_offload *offload,
46 unsigned int can_rx_offload_get_echo_skb(struct can_rx_offload *offload,
48 int can_rx_offload_queue_tail(struct can_rx_offload *offload,
50 void can_rx_offload_reset(struct can_rx_offload *offload);
[all …]
/kernel/linux/linux-4.19/kernel/bpf/
Doffload.c29 /* Protects offdevs, members of bpf_offload_netdev and offload members
81 struct bpf_prog_offload *offload; in bpf_prog_offload_init() local
91 offload = kzalloc(sizeof(*offload), GFP_USER); in bpf_prog_offload_init()
92 if (!offload) in bpf_prog_offload_init()
95 offload->prog = prog; in bpf_prog_offload_init()
97 offload->netdev = dev_get_by_index(current->nsproxy->net_ns, in bpf_prog_offload_init()
99 err = bpf_dev_offload_check(offload->netdev); in bpf_prog_offload_init()
104 ondev = bpf_offload_find_netdev(offload->netdev); in bpf_prog_offload_init()
109 prog->aux->offload = offload; in bpf_prog_offload_init()
110 list_add_tail(&offload->offloads, &ondev->progs); in bpf_prog_offload_init()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/
Ddc_helper.c39 struct dc_reg_helper_state *offload, in submit_dmub_read_modify_write() argument
42 struct dmub_rb_cmd_read_modify_write *cmd_buf = &offload->cmd_data.read_modify_write; in submit_dmub_read_modify_write()
45 offload->should_burst_write = in submit_dmub_read_modify_write()
46 (offload->same_addr_count == (DMUB_READ_MODIFY_WRITE_SEQ__MAX - 1)); in submit_dmub_read_modify_write()
48 sizeof(struct dmub_cmd_read_modify_write_sequence) * offload->reg_seq_count; in submit_dmub_read_modify_write()
53 dc_dmub_srv_cmd_queue(ctx->dmub_srv, &offload->cmd_data); in submit_dmub_read_modify_write()
59 offload->reg_seq_count = 0; in submit_dmub_read_modify_write()
60 offload->same_addr_count = 0; in submit_dmub_read_modify_write()
64 struct dc_reg_helper_state *offload, in submit_dmub_burst_write() argument
67 struct dmub_rb_cmd_burst_write *cmd_buf = &offload->cmd_data.burst_write; in submit_dmub_burst_write()
[all …]
/kernel/linux/linux-4.19/Documentation/networking/
Dsegmentation-offloads.txt7 to take advantage of segmentation offload capabilities of various NICs.
10 * TCP Segmentation Offload - TSO
11 * UDP Fragmentation Offload - UFO
13 * Generic Segmentation Offload - GSO
14 * Generic Receive Offload - GRO
15 * Partial Generic Segmentation Offload - GSO_PARTIAL
18 TCP Segmentation Offload
28 offload. For this reason TSO is normally disabled if the Tx checksum
29 offload for a given device is disabled.
31 In order to support TCP segmentation offload it is necessary to populate
[all …]
Dxfrm_device.txt14 Luckily, there are NICs that offer a hardware based IPsec offload which
17 hardware offload.
19 Userland access to the offload is typically through a system such as
28 offload dev eth4 dir in
47 The NIC driver offering ipsec offload will need to implement these
48 callbacks to make the offload available to the network stack's
50 NETIF_F_HW_ESP_TX_CSUM will signal the availability of the offload.
65 When new SAs are set up with a request for "offload" feature, the
70 - enable the HW offload of the SA
73 that can be used to convey context into the fast-path offload requests.
[all …]
Dchecksum-offloads.txt8 to take advantage of checksum offload capabilities of various NICs.
11 * TX Checksum Offload
12 * LCO: Local Checksum Offload
13 * RCO: Remote Checksum Offload
16 * RX Checksum Offload
20 TX Checksum Offload
49 A driver declares its offload capabilities in netdev->hw_features; see
59 The stack should, for the most part, assume that checksum offload is
62 That function compares the offload features requested by the SKB (which
63 may include other offloads besides TX Checksum Offload) and, if they are
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dnf_flow_table_offload.c577 const struct flow_offload_work *offload, in nf_flow_offload_rule_alloc() argument
580 const struct nf_flowtable *flowtable = offload->flowtable; in nf_flow_offload_rule_alloc()
581 const struct flow_offload *flow = offload->flow; in nf_flow_offload_rule_alloc()
643 static int nf_flow_offload_alloc(const struct flow_offload_work *offload, in nf_flow_offload_alloc() argument
646 struct net *net = read_pnet(&offload->flowtable->net); in nf_flow_offload_alloc()
648 flow_rule[0] = nf_flow_offload_rule_alloc(net, offload, in nf_flow_offload_alloc()
653 flow_rule[1] = nf_flow_offload_rule_alloc(net, offload, in nf_flow_offload_alloc()
712 static int flow_offload_tuple_add(struct flow_offload_work *offload, in flow_offload_tuple_add() argument
716 return nf_flow_offload_tuple(offload->flowtable, offload->flow, in flow_offload_tuple_add()
717 flow_rule, dir, offload->priority, in flow_offload_tuple_add()
[all …]
/kernel/linux/linux-5.10/Documentation/networking/
Dsegmentation-offloads.rst12 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 …]
Dxfrm_device.rst16 Luckily, there are NICs that offer a hardware based IPsec offload which
19 hardware offload.
21 Userland access to the offload is typically through a system such as
30 offload dev eth4 dir in
51 The NIC driver offering ipsec offload will need to implement these
52 callbacks to make the offload available to the network stack's
54 NETIF_F_HW_ESP_TX_CSUM will signal the availability of the offload.
71 When new SAs are set up with a request for "offload" feature, the
77 - enable the HW offload of the SA
82 -EOPNETSUPP offload not supported, try SW IPsec
[all …]
Dtls-offload.rst4 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 …]
Dchecksum-offloads.rst12 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 …]
/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/
Dsja1105_tas.c31 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 …]
/kernel/linux/linux-4.19/tools/testing/selftests/bpf/
Dtest_offload.py502 args = "hw-tc-offload %s" % ("on" if enable else "off")
682 check_extack(err, "TC offload is disabled on net device.", args)
688 start_test("Test TC offload by default...")
698 start_test("Test TC cBPF bytcode tries offload by default...")
709 start_test("Test TC cBPF unbound bytecode doesn't offload...")
712 fail(ret == 0, "TC bytecode loaded for offload")
717 start_test("Test non-0 chain offload...")
722 check_extack(err, "Driver supports only offload of chain 0.", args)
755 test_spurios_extack(sim, obj, False, "TC offload is disabled")
756 test_spurios_extack(sim, obj, True, "TC offload is disabled")
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/flower/
Dqos_conf.c76 …NL_SET_ERR_MSG_MOD(extack, "unsupported offload: qos rate limit offload not supported on higher le… in nfp_flower_install_rate_limiter()
83 …NL_SET_ERR_MSG_MOD(extack, "unsupported offload: qos rate limit offload not supported on shared bl… in nfp_flower_install_rate_limiter()
88 …NL_SET_ERR_MSG_MOD(extack, "unsupported offload: qos rate limit offload not supported on non-VF po… in nfp_flower_install_rate_limiter()
93 …NL_SET_ERR_MSG_MOD(extack, "unsupported offload: qos rate limit offload requires a single action"); in nfp_flower_install_rate_limiter()
98 …NL_SET_ERR_MSG_MOD(extack, "unsupported offload: qos rate limit offload requires highest priority"… in nfp_flower_install_rate_limiter()
103 NL_SET_ERR_MSG_MOD(extack, "unsupported offload: qos rate limit offload requires police action"); in nfp_flower_install_rate_limiter()
149 …NL_SET_ERR_MSG_MOD(extack, "unsupported offload: qos rate limit offload not supported on higher le… in nfp_flower_remove_rate_limiter()
158 NL_SET_ERR_MSG_MOD(extack, "unsupported offload: cannot remove qos entry that does not exist"); in nfp_flower_remove_rate_limiter()
302 …NL_SET_ERR_MSG_MOD(extack, "unsupported offload: qos rate limit offload not supported on higher le… in nfp_flower_stats_rate_limiter()
309 NL_SET_ERR_MSG_MOD(extack, "unsupported offload: cannot find qos entry for stats update"); in nfp_flower_stats_rate_limiter()
[all …]
Daction.c42 /* 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()
224 …NL_SET_ERR_MSG_MOD(extack, "unsupported offload: pre-tunnel rules not supported in loaded firmware… in nfp_fl_output()
229 …NL_SET_ERR_MSG_MOD(extack, "unsupported offload: pre-tunnel rules require single egress dev and pt… in nfp_fl_output()
243 …NL_SET_ERR_MSG_MOD(extack, "unsupported offload: ingress and egress interfaces are on different de… in nfp_fl_output()
249 NL_SET_ERR_MSG_MOD(extack, "unsupported offload: egress interface is not an nfp port"); in nfp_fl_output()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dnetdev_features.h30 NETIF_F_GRO_BIT, /* Generic receive offload */
31 NETIF_F_LRO_BIT, /* large receive offload */
61 NETIF_F_SCTP_CRC_BIT, /* SCTP checksum offload */
64 NETIF_F_RXHASH_BIT, /* Receive hashing offload */
65 NETIF_F_RXCSUM_BIT, /* Receive checksumming offload */
75 NETIF_F_HW_TC_BIT, /* Offload TC infrastructure */
76 NETIF_F_HW_ESP_BIT, /* Hardware ESP transformation offload */
77 NETIF_F_HW_ESP_TX_CSUM_BIT, /* ESP with TX checksum offload */
78 NETIF_F_RX_UDP_TUNNEL_PORT_BIT, /* Offload of RX port for UDP tunnels */
79 NETIF_F_HW_TLS_TX_BIT, /* Hardware TLS TX offload */
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_offload.py581 args = "hw-tc-offload %s" % ("on" if enable else "off")
692 start_test("Test multi-attachment XDP - %s + offload..." %
694 sim.set_xdp(obj, "offload")
705 "Offload program not reported after other activated")
710 "Offload ID changed after loading other program")
713 ret, _, err = sim.set_xdp(obj, "offload", fail=False, include_stderr=True)
723 sim.unset_xdp("offload")
731 "Offload program not reported after other activated")
734 fail(offloaded != "0", "Offload ID reported with only other program left")
737 sim.set_xdp(obj, "offload")
[all …]
/kernel/linux/linux-4.19/include/linux/
Dnetdev_features.h35 NETIF_F_GRO_BIT, /* Generic receive offload */
36 NETIF_F_LRO_BIT, /* large receive offload */
65 NETIF_F_SCTP_CRC_BIT, /* SCTP checksum offload */
68 NETIF_F_RXHASH_BIT, /* Receive hashing offload */
69 NETIF_F_RXCSUM_BIT, /* Receive checksumming offload */
79 NETIF_F_HW_TC_BIT, /* Offload TC infrastructure */
80 NETIF_F_HW_ESP_BIT, /* Hardware ESP transformation offload */
81 NETIF_F_HW_ESP_TX_CSUM_BIT, /* ESP with TX checksum offload */
82 NETIF_F_RX_UDP_TUNNEL_PORT_BIT, /* Offload of RX port for UDP tunnels */
83 NETIF_F_HW_TLS_TX_BIT, /* Hardware TLS TX offload */
[all …]
/kernel/linux/linux-4.19/Documentation/crypto/
Dasync-tx-api.txt29 the details of different hardware offload engine implementations. Code
31 the API will fit the chain of operations to the available offload
36 The API was initially designed to offload the memory copy and
37 xor-parity-calculations of the md-raid5 driver using the offload engines
43 the platform they are running on has offload capabilities. The
78 resources, under control of the offload engine driver, to be reused as
82 acknowledged by the application before the offload engine driver is allowed to
92 async_<operation> call. Offload engine drivers batch operations to
107 context if the offload engine driver supports interrupts, or it is
220 drivers/dma/dmaengine.c: offload engine channel management routines
[all …]
/kernel/linux/linux-5.10/Documentation/crypto/
Dasync-tx-api.rst34 the details of different hardware offload engine implementations. Code
36 the API will fit the chain of operations to the available offload
42 The API was initially designed to offload the memory copy and
43 xor-parity-calculations of the md-raid5 driver using the offload engines
50 the platform they are running on has offload capabilities. The
96 resources, under control of the offload engine driver, to be reused as
100 acknowledged by the application before the offload engine driver is allowed to
113 async_<operation> call. Offload engine drivers batch operations to
131 context if the offload engine driver supports interrupts, or it is
260 offload engine channel management routines
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
Dvxlan.sh5 # as sanitization of invalid configurations and offload indication.
421 # we offload must share certain properties such as source IP and
480 log_test "vxlan flood entry offload indication"
497 log_test "vxlan entry offload indication - initial state"
508 log_test "vxlan entry offload indication - after removal from bridge"
522 log_test "vxlan entry offload indication - after re-add to bridge"
533 log_test "vxlan entry offload indication - after removal from vxlan"
547 log_test "vxlan entry offload indication - after re-add to vxlan"
734 log_test "offload indication - attach vxlan first"
740 log_test "offload indication - set vxlan down"
[all …]

12345678910>>...54