Lines Matching defs:offset_lst
367 def _validate_res(res, offset_lst, pkt_sz_lst):
382 if res["offset"] == offset_lst[0] and res["pkt_sz"] == pkt_sz_lst[0]:
386 tmp_idx = offset_lst.index(res["offset"])
387 prev_offset = offset_lst[tmp_idx - 1]
431 def _test_xdp_native_tail_adjst(cfg, pkt_sz_lst, offset_lst):
444 offset_lst: List of offsets to validate support for tail adjustment.
458 for offset in offset_lst:
505 offset_lst = [1, 16, 32, 64, 128, 256]
509 offset_lst,
512 _validate_res(res, offset_lst, pkt_sz_lst)
523 offset_lst = [-16, -32, -64, -128, -256]
527 offset_lst,
530 _validate_res(res, offset_lst, pkt_sz_lst)
559 def _test_xdp_native_head_adjst(cfg, prog, pkt_sz_lst, offset_lst):
579 for offset in offset_lst:
647 offset_lst = [-16, -32, -64, -128, -256]
648 res = _test_xdp_native_head_adjst(cfg, "xdp_prog_frags", pkt_sz_lst, offset_lst)
650 _validate_res(res, offset_lst, pkt_sz_lst)
668 offset_lst = [16, 32, 64, 128, 256]
669 res = _test_xdp_native_head_adjst(cfg, "xdp_prog_frags", pkt_sz_lst, offset_lst)
671 _validate_res(res, offset_lst, pkt_sz_lst)