Lines Matching defs:ena_tx_ctx
687 ena_tx_csum(struct ena_com_tx_ctx *ena_tx_ctx, struct mbuf *mbuf,
703 ena_meta = &ena_tx_ctx->ena_meta;
718 ena_tx_ctx->meta_valid = 1;
720 ena_tx_ctx->meta_valid = 0;
743 ena_tx_ctx->l3_csum_enable = 1;
746 ena_tx_ctx->tso_enable = 1;
752 ena_tx_ctx->l3_proto = ENA_ETH_IO_L3_PROTO_IPV4;
754 ena_tx_ctx->df = 1;
757 ena_tx_ctx->l3_proto = ENA_ETH_IO_L3_PROTO_IPV6;
764 ena_tx_ctx->l4_proto = ENA_ETH_IO_L4_PROTO_TCP;
767 ena_tx_ctx->l4_csum_enable = 1;
769 ena_tx_ctx->l4_csum_enable = 0;
771 ena_tx_ctx->l4_proto = ENA_ETH_IO_L4_PROTO_UDP;
774 ena_tx_ctx->l4_csum_enable = 1;
776 ena_tx_ctx->l4_csum_enable = 0;
778 ena_tx_ctx->l4_proto = ENA_ETH_IO_L4_PROTO_UNKNOWN;
779 ena_tx_ctx->l4_csum_enable = 0;
785 ena_tx_ctx->meta_valid = 1;
931 struct ena_com_tx_ctx ena_tx_ctx;
966 memset(&ena_tx_ctx, 0x0, sizeof(struct ena_com_tx_ctx));
967 ena_tx_ctx.ena_bufs = tx_info->bufs;
968 ena_tx_ctx.push_header = push_hdr;
969 ena_tx_ctx.num_bufs = tx_info->num_of_bufs;
970 ena_tx_ctx.req_id = req_id;
971 ena_tx_ctx.header_len = header_len;
974 ena_tx_csum(&ena_tx_ctx, *mbuf, adapter->disable_meta_caching);
977 ena_com_is_doorbell_needed(tx_ring->ena_com_io_sq, &ena_tx_ctx)) {
987 rc = ena_com_prepare_tx(io_sq, &ena_tx_ctx, &nb_hw_desc);