Home
last modified time | relevance | path

Searched refs:gopt (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/tools/testing/selftests/bpf/progs/
Dtest_tunnel_kern.c402 struct geneve_opt gopt; in _geneve_set_tunnel() local
410 __builtin_memset(&gopt, 0x0, sizeof(gopt)); in _geneve_set_tunnel()
411 gopt.opt_class = bpf_htons(0x102); /* Open Virtual Networking (OVN) */ in _geneve_set_tunnel()
412 gopt.type = 0x08; in _geneve_set_tunnel()
413 gopt.r1 = 0; in _geneve_set_tunnel()
414 gopt.r2 = 0; in _geneve_set_tunnel()
415 gopt.r3 = 0; in _geneve_set_tunnel()
416 gopt.length = 2; /* 4-byte multiple */ in _geneve_set_tunnel()
417 *(int *) &gopt.opt_data = bpf_htonl(0xdeadbeef); in _geneve_set_tunnel()
426 ret = bpf_skb_set_tunnel_opt(skb, &gopt, sizeof(gopt)); in _geneve_set_tunnel()
[all …]
/Linux-v5.4/net/sched/
Dsch_htb.c1000 struct tc_htb_glob *gopt; in htb_init() local
1021 gopt = nla_data(tb[TCA_HTB_INIT]); in htb_init()
1022 if (gopt->version != HTB_VER >> 16) in htb_init()
1036 if ((q->rate2quantum = gopt->rate2quantum) < 1) in htb_init()
1038 q->defcls = gopt->defcls; in htb_init()
1047 struct tc_htb_glob gopt; in htb_dump() local
1054 gopt.direct_pkts = q->direct_pkts; in htb_dump()
1055 gopt.version = HTB_VER; in htb_dump()
1056 gopt.rate2quantum = q->rate2quantum; in htb_dump()
1057 gopt.defcls = q->defcls; in htb_dump()
[all …]