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