Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tunnel_kern.c583 struct geneve_opt gopt; member
593 struct geneve_opt *gopt = (struct geneve_opt *) &local_gopt; in geneve_set_tunnel() local
601 __builtin_memset(gopt, 0x0, sizeof(local_gopt)); in geneve_set_tunnel()
602 gopt->opt_class = bpf_htons(0x102); /* Open Virtual Networking (OVN) */ in geneve_set_tunnel()
603 gopt->type = 0x08; in geneve_set_tunnel()
604 gopt->r1 = 0; in geneve_set_tunnel()
605 gopt->r2 = 0; in geneve_set_tunnel()
606 gopt->r3 = 0; in geneve_set_tunnel()
607 gopt->length = 2; /* 4-byte multiple */ in geneve_set_tunnel()
608 *(int *) &gopt->opt_data = bpf_htonl(0xdeadbeef); in geneve_set_tunnel()
[all …]
/linux/net/sched/
H A Dsch_htb.c1057 struct tc_htb_glob *gopt; in htb_init() local
1080 gopt = nla_data(tb[TCA_HTB_INIT]); in htb_init()
1081 if (gopt->version != HTB_VER >> 16) in htb_init()
1114 if ((q->rate2quantum = gopt->rate2quantum) < 1) in htb_init()
1116 q->defcls = gopt->defcls; in htb_init()
1209 struct tc_htb_glob gopt; in htb_dump() local
1221 gopt.direct_pkts = q->direct_pkts; in htb_dump()
1222 gopt.version = HTB_VER; in htb_dump()
1223 gopt.rate2quantum = q->rate2quantum; in htb_dump()
1224 gopt.defcls = q->defcls; in htb_dump()
[all …]