Lines Matching full:offload

12  * @off: pointer to struct that holds offload parameters
14 * Returns 0 or error (negative) if checksum offload cannot be executed, 1
102 /* indicate if we need to offload outer UDP header */ in idpf_tx_singleq_csum()
108 /* record tunnel offload values */ in idpf_tx_singleq_csum()
157 /* enable UDP checksum offload */ in idpf_tx_singleq_csum()
162 /* enable SCTP checksum offload */ in idpf_tx_singleq_csum()
186 * @offloads: pointer to struct that holds offload parameters
327 * @offload: offload parameter structure
330 struct idpf_tx_offload_params *offload) in idpf_tx_singleq_build_ctx_desc() argument
335 if (offload->tso_segs) { in idpf_tx_singleq_build_ctx_desc()
338 offload->tso_len); in idpf_tx_singleq_build_ctx_desc()
339 qw1 |= FIELD_PREP(IDPF_TXD_CTX_QW1_MSS_M, offload->mss); in idpf_tx_singleq_build_ctx_desc()
346 desc->qw0.tunneling_params = cpu_to_le32(offload->cd_tunneling); in idpf_tx_singleq_build_ctx_desc()
363 struct idpf_tx_offload_params offload = { }; in idpf_tx_singleq_frame() local
387 offload.tx_flags |= IDPF_TX_FLAGS_IPV4; in idpf_tx_singleq_frame()
389 offload.tx_flags |= IDPF_TX_FLAGS_IPV6; in idpf_tx_singleq_frame()
391 tso = idpf_tso(skb, &offload); in idpf_tx_singleq_frame()
395 csum = idpf_tx_singleq_csum(skb, &offload); in idpf_tx_singleq_frame()
399 if (tso || offload.cd_tunneling) in idpf_tx_singleq_frame()
400 idpf_tx_singleq_build_ctx_desc(tx_q, &offload); in idpf_tx_singleq_frame()
407 first->packets = offload.tso_segs; in idpf_tx_singleq_frame()
408 first->bytes = skb->len + ((first->packets - 1) * offload.tso_hdr_len); in idpf_tx_singleq_frame()
413 idpf_tx_singleq_map(tx_q, first, &offload); in idpf_tx_singleq_frame()
618 /* Device could not do any checksum offload for certain extension in idpf_rx_singleq_csum()