Lines Matching refs:orig_ctx
98 struct xdp_buff orig_ctx; member
108 struct xdp_buff *orig_ctx; member
129 struct xdp_buff *new_ctx, *orig_ctx; in xdp_test_run_init_page() local
136 orig_ctx = xdp->orig_ctx; in xdp_test_run_init_page()
137 frm_len = orig_ctx->data_end - orig_ctx->data_meta; in xdp_test_run_init_page()
138 meta_len = orig_ctx->data - orig_ctx->data_meta; in xdp_test_run_init_page()
144 memcpy(data + headroom, orig_ctx->data_meta, frm_len); in xdp_test_run_init_page()
153 memcpy(&head->orig_ctx, new_ctx, sizeof(head->orig_ctx)); in xdp_test_run_init_page()
156 static int xdp_test_run_setup(struct xdp_test_data *xdp, struct xdp_buff *orig_ctx) in xdp_test_run_setup() argument
193 xdp_rxq_info_reg(&xdp->rxq, orig_ctx->rxq->dev, 0, 0); in xdp_test_run_setup()
196 xdp->dev = orig_ctx->rxq->dev; in xdp_test_run_setup()
197 xdp->orig_ctx = orig_ctx; in xdp_test_run_setup()
220 return head->orig_ctx.data != head->ctx.data || in ctx_was_changed()
221 head->orig_ctx.data_meta != head->ctx.data_meta || in ctx_was_changed()
222 head->orig_ctx.data_end != head->ctx.data_end; in ctx_was_changed()
230 head->ctx.data = head->orig_ctx.data; in reset_ctx()
231 head->ctx.data_meta = head->orig_ctx.data_meta; in reset_ctx()
232 head->ctx.data_end = head->orig_ctx.data_end; in reset_ctx()