Lines Matching defs:ena_rx_ctx
1089 * @ena_rx_ctx: received packet context/metadata
1093 struct ena_com_rx_ctx *ena_rx_ctx,
1103 if (ena_rx_ctx->frag) {
1109 if (unlikely((ena_rx_ctx->l3_proto == ENA_ETH_IO_L3_PROTO_IPV4) &&
1110 (ena_rx_ctx->l3_csum_err))) {
1121 if (likely((ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_TCP) ||
1122 (ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_UDP))) {
1123 if (unlikely(ena_rx_ctx->l4_csum_err)) {
1133 if (likely(ena_rx_ctx->l4_csum_checked)) {
1150 struct ena_com_rx_ctx *ena_rx_ctx,
1156 if (likely((ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_TCP) ||
1157 (ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_UDP)))
1164 if (ena_rx_ctx->frag)
1167 skb_set_hash(skb, ena_rx_ctx->hash, hash_type);
1211 struct ena_com_rx_ctx ena_rx_ctx;
1235 ena_rx_ctx.ena_bufs = rx_ring->ena_bufs;
1236 ena_rx_ctx.max_bufs = rx_ring->sgl_size;
1237 ena_rx_ctx.descs = 0;
1238 ena_rx_ctx.pkt_offset = 0;
1241 &ena_rx_ctx);
1245 if (unlikely(ena_rx_ctx.descs == 0))
1250 pkt_offset = ena_rx_ctx.pkt_offset;
1255 rx_ring->qid, ena_rx_ctx.descs, ena_rx_ctx.l3_proto,
1256 ena_rx_ctx.l4_proto, ena_rx_ctx.hash);
1264 xdp_verdict = ena_xdp_handle_buff(rx_ring, &xdp, ena_rx_ctx.descs);
1270 ena_rx_ctx.descs,
1274 for (i = 0; i < ena_rx_ctx.descs; i++) {
1294 total_len += ena_rx_ctx.ena_bufs[0].len;
1301 ena_rx_checksum(rx_ring, &ena_rx_ctx, skb);
1303 ena_set_rx_hash(rx_ring, &ena_rx_ctx, skb);