H A D | bpf_offload.py | 146 def tool(name, args, flags, JSON=True, ns="", fail=True, include_stderr=False): argument 148 if JSON: 163 if JSON and len(stdout.strip()) != 0: 173 def bpftool(args, JSON=True, ns="", fail=True, include_stderr=False): argument 174 return tool("bpftool", args, {"json":"-p"}, JSON=JSON, ns=ns, 178 _, progs = bpftool("prog show", JSON=True, ns=ns, fail=True) 192 _, maps = bpftool("map show", JSON=True, ns=ns, fail=True) 232 def ip(args, force=False, JSON=True, ns="", fail=True, include_stderr=False): argument 235 return tool("ip", args, {"json":"-j"}, JSON=JSON, ns=ns, 238 def tc(args, JSON=True, ns="", fail=True, include_stderr=False): argument [all …]
|