Lines Matching full:offload

581         args = "hw-tc-offload %s" % ("on" if enable else "off")
692 start_test("Test multi-attachment XDP - %s + offload..." %
694 sim.set_xdp(obj, "offload")
705 "Offload program not reported after other activated")
710 "Offload ID changed after loading other program")
713 ret, _, err = sim.set_xdp(obj, "offload", fail=False, include_stderr=True)
723 sim.unset_xdp("offload")
731 "Offload program not reported after other activated")
734 fail(offloaded != "0", "Offload ID reported with only other program left")
737 sim.set_xdp(obj, "offload")
741 "Other program not reported after offload activated")
835 check_extack(err, "TC offload is disabled on net device.", args)
841 start_test("Test TC offload by default...")
851 start_test("Test TC cBPF bytcode tries offload by default...")
862 start_test("Test TC cBPF unbound bytecode doesn't offload...")
865 fail(ret == 0, "TC bytecode loaded for offload")
870 start_test("Test non-0 chain offload...")
875 check_extack(err, "Driver supports only offload of chain 0.", args)
908 test_spurios_extack(sim, obj, False, "TC offload is disabled")
909 test_spurios_extack(sim, obj, True, "TC offload is disabled")
928 start_test("Test TC offload basics...")
940 start_test("Test TC offload is device-bound...")
973 sim.set_xdp(obj, "offload")
1025 start_test("Test non-offload XDP attaching to HW...")
1028 ret, _, err = sim.set_xdp(nooffload, "offload",
1034 start_test("Test offload XDP attaching to drv...")
1035 bpftool_prog_load("sample_ret0.bpf.o", "/sys/fs/bpf/offload",
1037 offload = bpf_pinned("/sys/fs/bpf/offload") variable
1038 ret, _, err = sim.set_xdp(offload, "drv", fail=False, include_stderr=True)
1041 rm("/sys/fs/bpf/offload")
1046 ret, _, err = bpftool_prog_load("sample_ret0.bpf.o", "/sys/fs/bpf/offload",
1053 start_test("Test XDP offload...")
1054 _, _, err = sim.set_xdp(obj, "offload", verbose=True, include_stderr=True)
1061 start_test("Test XDP offload is device bound...")
1072 sim.unset_xdp("offload")
1073 sim.unset_xdp("offload")
1083 sim2.set_xdp(obj, "offload")
1086 ret, _, err = sim.set_xdp(pinned, "offload",
1091 ret, _, err = sim.set_xdp(pinned, "offload",
1104 sim.set_xdp(obj, "offload")
1108 check_extack_nsim(err, "driver and netdev offload states mismatch.", args)
1109 sim.unset_xdp("offload")
1113 ret, _, err = sim.set_xdp(obj, "offload", fail=False, include_stderr=True)
1124 sim.set_xdp(obj, "offload")
1127 sim.set_xdp(pinned, "offload", force=True)
1128 sim.unset_xdp("offload")
1129 sim.set_xdp(pinned, "offload", force=True)
1130 sim.unset_xdp("offload")
1132 start_test("Test offload of wrong type fails...")
1136 start_test("Test asking for TC offload of two filters...")
1140 fail(ret == 0, "Managed to offload two TC filters at the same time")
1141 check_extack_nsim(err, "driver and netdev offload states mismatch.", args)
1174 sim.set_xdp(map_obj, "offload", JSON=False) # map fixup msg breaks JSON
1206 sim.set_xdp(map_obj, "offload", JSON=False) # map fixup msg breaks JSON
1282 sim.unset_xdp("offload")
1288 sim.set_xdp(map_obj, "offload", JSON=False) # map fixup msg breaks JSON
1296 ret, _ = sim.set_xdp(map_obj, "offload", JSON=False, fail=False)
1298 "netdevsim didn't refuse to create a map with offload disabled")
1317 simA.set_xdp(progA, "offload", JSON=False)
1319 d.set_xdp(progB, "offload", JSON=False)
1322 ret, _ = simA.set_xdp(progB, "offload", force=True, JSON=False, fail=False)
1325 ret, _ = d.set_xdp(progA, "offload", force=True, JSON=False, fail=False)
1330 d.unset_xdp("offload")
1332 ret, _, err = simA.set_xdp(progB, "offload", force=True, JSON=False,
1337 ret, _, err = d.set_xdp(progA, "offload", force=True, JSON=False,
1359 fail(err.count("offload device mismatch between prog and map") == 0,
1367 fail(err.count("offload device mismatch between prog and map") == 0,