/Linux-v5.10/tools/testing/selftests/powerpc/switch_endian/ |
D | check.S | 8 * r15: pattern to check registers against. 14 cmpd r9,r3 # check r3 16 addi r9,r15,4 # check r4 19 lis r9,0x00FF # check CR 26 addi r9,r15,32 # check LR 30 addi r9,r15,5 # check r5 33 addi r9,r15,6 # check r6 36 addi r9,r15,7 # check r7 39 addi r9,r15,8 # check r8 42 addi r9,r15,13 # check r13 [all …]
|
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
D | pinning.c | 18 if (CHECK(!map, "find map", "NULL map")) in get_map_id() 23 CHECK(err, "get map info", "err %d errno %d", err, errno); in get_map_id() 45 /* check that opening fails with invalid pinning value in map def */ in test_pinning() 48 if (CHECK(err != -EINVAL, "invalid open", "err %d errno %d\n", err, errno)) { in test_pinning() 56 if (CHECK(err, "default open", "err %d errno %d\n", err, errno)) { in test_pinning() 62 if (CHECK(err, "default load", "err %d errno %d\n", err, errno)) in test_pinning() 65 /* check that pinmap was pinned */ in test_pinning() 67 if (CHECK(err, "stat pinpath", "err %d errno %d\n", err, errno)) in test_pinning() 70 /* check that nopinmap was *not* pinned */ in test_pinning() 72 if (CHECK(!err || errno != ENOENT, "stat nopinpath", in test_pinning() [all …]
|
D | bpf_iter.c | 34 if (CHECK(skel, "bpf_iter_test_kern3__open_and_load", in test_btf_id_or_null() 48 if (CHECK(IS_ERR(link), "attach_iter", "attach_iter failed\n")) in do_dummy_read() 52 if (CHECK(iter_fd < 0, "create_iter", "create_iter failed\n")) in do_dummy_read() 55 /* not check contents, but ensure read() ends without error */ in do_dummy_read() 58 CHECK(len < 0, "read", "read failed: %s\n", strerror(errno)); in do_dummy_read() 71 if (CHECK(!skel, "bpf_iter_ipv6_route__open_and_load", in test_ipv6_route() 85 if (CHECK(!skel, "bpf_iter_netlink__open_and_load", in test_netlink() 99 if (CHECK(!skel, "bpf_iter_bpf_map__open_and_load", in test_bpf_map() 113 if (CHECK(!skel, "bpf_iter_task__open_and_load", in test_task() 127 if (CHECK(!skel, "bpf_iter_task_stack__open_and_load", in test_task_stack() [all …]
|
D | skeleton.c | 23 if (CHECK(!skel, "skel_open", "failed to open skeleton\n")) in test_skeleton() 26 if (CHECK(skel->kconfig, "skel_kconfig", "kconfig is mmaped()!\n")) in test_skeleton() 34 CHECK(data->in1 != -1, "in1", "got %d != exp %d\n", data->in1, -1); in test_skeleton() 35 CHECK(data->out1 != -1, "out1", "got %d != exp %d\n", data->out1, -1); in test_skeleton() 36 CHECK(data->in2 != -1, "in2", "got %lld != exp %lld\n", data->in2, -1LL); in test_skeleton() 37 CHECK(data->out2 != -1, "out2", "got %lld != exp %lld\n", data->out2, -1LL); in test_skeleton() 39 CHECK(bss->in3 != 0, "in3", "got %d != exp %d\n", bss->in3, 0); in test_skeleton() 40 CHECK(bss->out3 != 0, "out3", "got %d != exp %d\n", bss->out3, 0); in test_skeleton() 41 CHECK(bss->in4 != 0, "in4", "got %lld != exp %lld\n", bss->in4, 0LL); in test_skeleton() 42 CHECK(bss->out4 != 0, "out4", "got %lld != exp %lld\n", bss->out4, 0LL); in test_skeleton() [all …]
|
D | hashmap.c | 51 if (CHECK(IS_ERR(map), "hashmap__new", in test_hashmap_generic() 60 if (CHECK(err != -ENOENT, "hashmap__update", in test_hashmap_generic() 68 if (CHECK(oldk != NULL || oldv != NULL, "check_kv", in test_hashmap_generic() 73 if (CHECK(err, "elem_add", "failed to add k/v %ld = %ld: %d\n", in test_hashmap_generic() 77 if (CHECK(!hashmap__find(map, k, &oldv), "elem_find", in test_hashmap_generic() 80 if (CHECK(oldv != v, "elem_val", in test_hashmap_generic() 85 if (CHECK(hashmap__size(map) != ELEM_CNT, "hashmap__size", in test_hashmap_generic() 88 if (CHECK(hashmap__capacity(map) != exp_cap(hashmap__size(map)), in test_hashmap_generic() 99 if (CHECK(v - k != 1024, "check_kv", in test_hashmap_generic() 103 if (CHECK(found_msk != (1ULL << ELEM_CNT) - 1, "elem_cnt", in test_hashmap_generic() [all …]
|
D | cgroup_attach_override.c | 32 if (CHECK(allow_prog < 0, "prog_load_allow", in test_cgroup_attach_override() 37 if (CHECK(drop_prog < 0, "prog_load_drop", in test_cgroup_attach_override() 42 if (CHECK(foo < 0, "cgroup_join_foo", "cgroup setup failed\n")) in test_cgroup_attach_override() 45 if (CHECK(bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override() 51 if (CHECK(!system(PING_CMD), "ping_fail", in test_cgroup_attach_override() 56 if (CHECK(bar < 0, "cgroup_join_bar", "cgroup setup failed\n")) in test_cgroup_attach_override() 59 if (CHECK(!system(PING_CMD), "ping_fail", in test_cgroup_attach_override() 63 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override() 69 if (CHECK(system(PING_CMD), "ping_ok", "ping failed\n")) in test_cgroup_attach_override() 72 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override() [all …]
|
D | d_path.c | 37 if (CHECK(pipe(pipefd) < 0, "trigger", "pipe failed\n")) in trigger_fstat_events() 41 if (CHECK(sockfd < 0, "trigger", "socket failed\n")) in trigger_fstat_events() 45 if (CHECK(procfd < 0, "trigger", "open /proc/self/comm failed\n")) in trigger_fstat_events() 48 if (CHECK(devfd < 0, "trigger", "open /dev/urandom failed\n")) in trigger_fstat_events() 51 if (CHECK(localfd < 0, "trigger", "open /tmp/d_path_loadgen.txt failed\n")) in trigger_fstat_events() 56 if (CHECK(indicatorfd < 0, "trigger", "open /tmp/ failed\n")) in trigger_fstat_events() 60 if (CHECK(ret < 0, "trigger", "set_pathname failed for pipe[0]\n")) in trigger_fstat_events() 63 if (CHECK(ret < 0, "trigger", "set_pathname failed for pipe[1]\n")) in trigger_fstat_events() 66 if (CHECK(ret < 0, "trigger", "set_pathname failed for socket\n")) in trigger_fstat_events() 69 if (CHECK(ret < 0, "trigger", "set_pathname failed for proc\n")) in trigger_fstat_events() [all …]
|
D | ringbuf.c | 48 CHECK(s->value != 333, "sample1_value", "exp %ld, got %ld\n", in process_sample() 52 CHECK(s->value != 777, "sample2_value", "exp %ld, got %ld\n", in process_sample() 92 if (CHECK(!skel, "skel_open_load", "skeleton open&load failed\n")) in test_ringbuf() 100 if (CHECK(!ringbuf, "ringbuf_create", "failed to create ringbuf\n")) in test_ringbuf() 104 if (CHECK(err, "skel_attach", "skeleton attachment failed: %d\n", err)) in test_ringbuf() 110 CHECK(skel->bss->avail_data != 3 * rec_sz, in test_ringbuf() 113 CHECK(skel->bss->ring_size != 4096, in test_ringbuf() 116 CHECK(skel->bss->cons_pos != 0, in test_ringbuf() 119 CHECK(skel->bss->prod_pos != 3 * rec_sz, in test_ringbuf() 127 if (CHECK(err != -EDONE, "err_done", "done err: %d\n", err)) in test_ringbuf() [all …]
|
D | xdp_link.c | 21 if (CHECK(!skel1, "skel_load", "skeleton open and load failed\n")) in test_xdp_link() 26 if (CHECK(!skel2, "skel_load", "skeleton open and load failed\n")) in test_xdp_link() 32 if (CHECK(err, "fd_info1", "failed %d\n", -errno)) in test_xdp_link() 38 if (CHECK(err, "fd_info2", "failed %d\n", -errno)) in test_xdp_link() 44 if (CHECK(err, "fd_attach", "initial prog attach failed: %d\n", err)) in test_xdp_link() 49 CHECK(err || id0 != id1, "id1_check", in test_xdp_link() 54 if (CHECK(!IS_ERR(link), "link_attach_fail", "unexpected success\n")) { in test_xdp_link() 65 if (CHECK(err, "prog_detach", "failed %d\n", err)) in test_xdp_link() 70 if (CHECK(IS_ERR(link), "link_attach", "failed: %ld\n", PTR_ERR(link))) in test_xdp_link() 76 if (CHECK(err || id0 != id1, "id1_check", in test_xdp_link() [all …]
|
D | kfree_skb.c | 24 if (CHECK(size != 72 + sizeof(*meta), "check_size", "size %u != %zu\n", in on_sample() 27 if (CHECK(meta->ifindex != 1, "check_meta_ifindex", in on_sample() 31 if (CHECK(meta->cb8_0 != cb.cb8[0], "check_cb8_0", "cb8_0 %x != %x\n", in on_sample() 34 if (CHECK(meta->cb32_0 != cb.cb32[0], "check_cb32_0", in on_sample() 38 if (CHECK(pkt_v6->eth.h_proto != 0xdd86, "check_eth", in on_sample() 41 if (CHECK(pkt_v6->iph.nexthdr != 6, "check_ip", in on_sample() 44 if (CHECK(pkt_v6->tcp.doff != 5, "check_tcp", in on_sample() 78 if (CHECK(err, "prog_load sched cls", "err %d errno %d\n", err, errno)) in test_kfree_skb() 82 if (CHECK(err, "prog_load raw tp", "err %d errno %d\n", err, errno)) in test_kfree_skb() 86 if (CHECK(!prog, "find_prog", "prog kfree_skb not found\n")) in test_kfree_skb() [all …]
|
D | ksyms_btf.c | 22 if (CHECK(err == -EINVAL, "kallsyms_fopen", "failed to open: %d\n", errno)) in test_basic() 24 if (CHECK(err == -ENOENT, "ksym_find", "symbol 'runqueues' not found\n")) in test_basic() 28 if (CHECK(err == -EINVAL, "kallsyms_fopen", "failed to open: %d\n", errno)) in test_basic() 30 if (CHECK(err == -ENOENT, "ksym_find", "symbol 'bpf_prog_active' not found\n")) in test_basic() 34 if (CHECK(!skel, "skel_open", "failed to open and load skeleton\n")) in test_basic() 38 if (CHECK(err, "skel_attach", "skeleton attach failed: %d\n", err)) in test_basic() 45 CHECK(data->out__runqueues_addr != runqueues_addr, "runqueues_addr", in test_basic() 49 CHECK(data->out__bpf_prog_active_addr != bpf_prog_active_addr, "bpf_prog_active_addr", in test_basic() 54 CHECK(data->out__rq_cpu == -1, "rq_cpu", in test_basic() 56 CHECK(data->out__bpf_prog_active < 0, "bpf_prog_active", in test_basic() [all …]
|
D | cgroup_link.c | 18 if (CHECK(skel->bss->calls != exp_calls, "call_cnt", in ping_and_check() 21 if (CHECK(skel->bss->alt_calls != exp_alt_calls, "alt_call_cnt", in ping_and_check() 47 if (CHECK(!skel, "skel_open_load", "failed to open/load skeleton\n")) in test_cgroup_link() 52 if (CHECK(err, "cg_init", "failed: %d\n", err)) in test_cgroup_link() 57 if (CHECK(cgs[i].fd < 0, "cg_create", "fail: %d\n", cgs[i].fd)) in test_cgroup_link() 62 if (CHECK(err, "cg_join", "fail: %d\n", err)) in test_cgroup_link() 68 if (CHECK(IS_ERR(links[i]), "cg_attach", "i: %d, err: %ld\n", in test_cgroup_link() 81 if (CHECK(prog_cnt != 1, "effect_cnt", "exp %d, got %d\n", 1, prog_cnt)) in test_cgroup_link() 90 if (CHECK(prog_cnt != cg_nr, "effect_cnt", "exp %d, got %d\n", in test_cgroup_link() 100 if (CHECK(prog_cnt != cg_nr, "effect_cnt", "exp %d, got %d\n", in test_cgroup_link() [all …]
|
D | btf_map_in_map.c | 37 if (CHECK(inner_map_fd < 0, "inner_map_create", "failed %d\n", -errno)) in kern_sync_rcu() 42 if (CHECK(outer_map_fd < 0, "outer_map_create", "failed %d\n", -errno)) { in kern_sync_rcu() 50 CHECK(err, "outer_map_update", "failed %d\n", err); in kern_sync_rcu() 64 if (CHECK(!skel, "skel_open", "failed to open&load skeleton\n")) in test_lookup_update() 68 if (CHECK(err, "skel_attach", "skeleton attach failed: %d\n", err)) in test_lookup_update() 87 CHECK(val != 1, "inner1", "got %d != exp %d\n", val, 1); in test_lookup_update() 89 CHECK(val != 2, "inner2", "got %d != exp %d\n", val, 2); in test_lookup_update() 91 CHECK(val != 3, "inner3", "got %d != exp %d\n", val, 3); in test_lookup_update() 100 CHECK(val != 4, "inner1", "got %d != exp %d\n", val, 4); in test_lookup_update() 102 CHECK(val != 3, "inner2", "got %d != exp %d\n", val, 3); in test_lookup_update() [all …]
|
D | cg_storage_multi.c | 30 if (CHECK(bpf_map_lookup_elem(map_fd, key, &value) < 0, in assert_storage() 33 if (CHECK(memcmp(&value, expected, sizeof(struct cgroup_value)), in assert_storage() 47 if (CHECK(bpf_map_lookup_elem(map_fd, key, &value) == 0, in assert_storage_noexist() 50 if (CHECK(errno != ENOENT, in assert_storage_noexist() 95 if (CHECK(!obj, "skel-load", "errno %d", errno)) in test_egress_only() 105 if (CHECK(IS_ERR(parent_link), "parent-cg-attach", in test_egress_only() 109 if (CHECK(err, "first-connect-send", "errno %d", errno)) in test_egress_only() 111 if (CHECK(obj->bss->invocations != 1, in test_egress_only() 129 if (CHECK(IS_ERR(child_link), "child-cg-attach", in test_egress_only() 133 if (CHECK(err, "second-connect-send", "errno %d", errno)) in test_egress_only() [all …]
|
D | trace_ext.c | 31 if (CHECK(!skel_pkt, "setup", "classifier/test_pkt_md_access open failed\n")) in test_trace_ext() 35 if (CHECK(err, "setup", "classifier/test_pkt_md_access attach failed: %d\n", err)) in test_trace_ext() 43 if (CHECK(!skel_ext, "setup", "freplace/test_pkt_md_access open failed\n")) in test_trace_ext() 52 if (CHECK(err, "setup", "freplace/test_pkt_md_access load failed\n")) { in test_trace_ext() 59 if (CHECK(err, "setup", "freplace/test_pkt_md_access attach failed: %d\n", err)) in test_trace_ext() 67 if (CHECK(!skel_trace, "setup", "tracing/test_pkt_md_access_new open failed\n")) in test_trace_ext() 80 if (CHECK(err, "setup", "tracing/test_pkt_md_access_new load failed\n")) { in test_trace_ext() 87 if (CHECK(err, "setup", "tracing/test_pkt_md_access_new attach failed: %d\n", err)) in test_trace_ext() 93 CHECK(err || retval, "run", "err %d errno %d retval %d\n", err, errno, retval); in test_trace_ext() 100 CHECK(bss_ext->ext_called == 0, in test_trace_ext() [all …]
|
D | raw_tp_test_run.c | 27 if (CHECK(err, "parse_cpu_mask_file", "err %d\n", err)) in test_raw_tp_test_run() 31 if (CHECK(!skel, "skel_open", "failed to open skeleton\n")) in test_raw_tp_test_run() 35 if (CHECK(err, "skel_attach", "skeleton attach failed: %d\n", err)) in test_raw_tp_test_run() 39 if (CHECK(comm_fd < 0, "open /proc/self/comm", "err %d\n", errno)) in test_raw_tp_test_run() 43 CHECK(err < 0, "task rename", "err %d", errno); in test_raw_tp_test_run() 45 CHECK(skel->bss->count == 0, "check_count", "didn't increase\n"); in test_raw_tp_test_run() 46 CHECK(skel->data->on_cpu != 0xffffffff, "check_on_cpu", "got wrong value\n"); in test_raw_tp_test_run() 54 CHECK(err == 0, "test_run", "should fail for too small ctx\n"); in test_raw_tp_test_run() 58 CHECK(err < 0, "test_run", "err %d\n", errno); in test_raw_tp_test_run() 59 CHECK(test_attr.retval != expected_retval, "check_retval", in test_raw_tp_test_run() [all …]
|
D | xdp_info.c | 18 if (CHECK(err, "get_xdp_none", "errno=%d\n", errno)) in test_xdp_info() 20 if (CHECK(prog_id, "prog_id_none", "unexpected prog_id=%u\n", prog_id)) in test_xdp_info() 24 if (CHECK(err, "get_xdp_none_skb", "errno=%d\n", errno)) in test_xdp_info() 26 if (CHECK(prog_id, "prog_id_none_skb", "unexpected prog_id=%u\n", in test_xdp_info() 37 if (CHECK(err, "get_prog_info", "errno=%d\n", errno)) in test_xdp_info() 41 if (CHECK(err, "set_xdp_skb", "errno=%d\n", errno)) in test_xdp_info() 47 if (CHECK(err, "get_xdp", "errno=%d\n", errno)) in test_xdp_info() 49 if (CHECK(prog_id != info.id, "prog_id", "prog_id not available\n")) in test_xdp_info() 53 if (CHECK(err, "get_xdp_skb", "errno=%d\n", errno)) in test_xdp_info() 55 if (CHECK(prog_id != info.id, "prog_id_skb", "prog_id not available\n")) in test_xdp_info() [all …]
|
/Linux-v5.10/tools/testing/selftests/arm64/mte/ |
D | check_mmap_options.c | 214 "Check anonymous memory with private mapping, sync error mode, mmap memory and tag check off\n"); in main() 216 …"Check file memory with private mapping, sync error mode, mmap/mprotect memory and tag check off\n… in main() 220 "Check anonymous memory with private mapping, no error mode, mmap memory and tag check off\n"); in main() 222 "Check file memory with private mapping, no error mode, mmap/mprotect memory and tag check off\n"); in main() 225 "Check anonymous memory with private mapping, sync error mode, mmap memory and tag check on\n"); in main() 227 …"Check anonymous memory with private mapping, sync error mode, mmap/mprotect memory and tag check … in main() 229 "Check anonymous memory with shared mapping, sync error mode, mmap memory and tag check on\n"); in main() 231 …"Check anonymous memory with shared mapping, sync error mode, mmap/mprotect memory and tag check o… in main() 233 "Check anonymous memory with private mapping, async error mode, mmap memory and tag check on\n"); in main() 235 …"Check anonymous memory with private mapping, async error mode, mmap/mprotect memory and tag check… in main() [all …]
|
/Linux-v5.10/arch/powerpc/lib/ |
D | code-patching.c | 234 * Helper to check if a given instruction is a conditional branch 266 /* Check we can represent the target in the instruction format */ in create_branch() 285 /* Check we can represent the target in the instruction format */ in create_cond_branch() 413 #define check(x) \ macro 425 check(instr_is_branch_iform(ppc_inst(0x48000000))); in test_branch_iform() 427 check(instr_is_branch_iform(ppc_inst(0x4bffffff))); in test_branch_iform() 429 check(!instr_is_branch_iform(ppc_inst(0xcbffffff))); in test_branch_iform() 431 check(!instr_is_branch_iform(ppc_inst(0x7bffffff))); in test_branch_iform() 434 check(instr_is_branch_iform(ppc_inst(0x48000001))); in test_branch_iform() 436 check(instr_is_branch_iform(ppc_inst(0x4bfffffd))); in test_branch_iform() [all …]
|
/Linux-v5.10/drivers/firmware/efi/ |
D | cper-x86.c | 47 #define CHECK_VALID_BITS(check) (((check) & GENMASK_ULL(15, 0))) argument 48 #define CHECK_TRANS_TYPE(check) (((check) & GENMASK_ULL(17, 16)) >> 16) argument 49 #define CHECK_OPERATION(check) (((check) & GENMASK_ULL(21, 18)) >> 18) argument 50 #define CHECK_LEVEL(check) (((check) & GENMASK_ULL(24, 22)) >> 22) argument 57 #define CHECK_BUS_PART_TYPE(check) (((check) & GENMASK_ULL(31, 30)) >> 30) argument 59 #define CHECK_BUS_ADDR_SPACE(check) (((check) & GENMASK_ULL(34, 33)) >> 33) argument 68 #define CHECK_MS_ERR_TYPE(check) (((check) & GENMASK_ULL(18, 16)) >> 16) argument 143 "MSR Registers (Machine Check and other MSRs)", 152 static inline void print_bool(char *str, const char *pfx, u64 check, u64 bit) in print_bool() argument 154 printk("%s%s: %s\n", pfx, str, (check & bit) ? "true" : "false"); in print_bool() [all …]
|
/Linux-v5.10/lib/ |
D | percpu_test.c | 5 #define CHECK(native, pcp, expected) \ macro 36 CHECK(l, long_counter, -1); in percpu_test_init() 40 CHECK(l, long_counter, 0); in percpu_test_init() 47 CHECK(ul, ulong_counter, 1); in percpu_test_init() 51 CHECK(ul, ulong_counter, 0); in percpu_test_init() 55 CHECK(ul, ulong_counter, -1); in percpu_test_init() 62 CHECK(ul, ulong_counter, -1); in percpu_test_init() 63 CHECK(ul, ulong_counter, ULONG_MAX); in percpu_test_init() 67 CHECK(l, long_counter, 0xffffffff); in percpu_test_init() 71 CHECK(l, long_counter, (long)0x100000000LL); in percpu_test_init() [all …]
|
D | bitfield_kunit.c | 95 #define CHECK(tp, mask) do { \ macro 105 CHECK(u8, 0x0f); in test_bitfields_variables() 106 CHECK(u8, 0xf0); in test_bitfields_variables() 107 CHECK(u8, 0x38); in test_bitfields_variables() 109 CHECK(u16, 0x0038); in test_bitfields_variables() 110 CHECK(u16, 0x0380); in test_bitfields_variables() 111 CHECK(u16, 0x3800); in test_bitfields_variables() 112 CHECK(u16, 0x8000); in test_bitfields_variables() 114 CHECK(u32, 0x80000000); in test_bitfields_variables() 115 CHECK(u32, 0x7f000000); in test_bitfields_variables() [all …]
|
/Linux-v5.10/arch/m68k/fpsp040/ |
D | smovecr.S | 48 | check range of offset 52 cmpib #0x0a,%d0 |check range $01 - $0a 54 cmpib #0x0e,%d0 |check range $0b - $0e 56 cmpib #0x2f,%d0 |check range $10 - $2f 58 cmpib #0x3f,%d0 |check range $30 - $3f 64 tstb %d1 |offset is zero, check for rmode 66 cmpib #0x3,%d1 |check for rp 79 tstb %d1 |check for rmode 81 cmpib #0x3,%d1 |check for rp 85 cmpib #0x2,%d0 |check if result is inex [all …]
|
/Linux-v5.10/tools/testing/selftests/net/mptcp/ |
D | pm_netlink.sh | 49 check() function 71 check "ip netns exec $ns1 ./pm_nl_ctl dump" "" "defaults addr list" 72 check "ip netns exec $ns1 ./pm_nl_ctl limits" "accept 0 78 check "ip netns exec $ns1 ./pm_nl_ctl get 1" "id 1 flags 10.0.1.1" "simple add/get addr" 80 check "ip netns exec $ns1 ./pm_nl_ctl dump" \ 86 check "ip netns exec $ns1 ./pm_nl_ctl get 2" "" "simple del addr" 87 check "ip netns exec $ns1 ./pm_nl_ctl dump" \ 92 check "ip netns exec $ns1 ./pm_nl_ctl get 4" "" "duplicate addr" 95 check "ip netns exec $ns1 ./pm_nl_ctl get 4" "id 4 flags signal 10.0.1.4" "id addr increment" 100 check "ip netns exec $ns1 ./pm_nl_ctl get 9" "id 9 flags signal 10.0.1.9" "hard addr limit" [all …]
|
/Linux-v5.10/include/net/ |
D | dsfield.h | 31 __u32 check = ntohs((__force __be16)iph->check); in ipv4_change_dsfield() local 35 check += iph->tos; in ipv4_change_dsfield() 36 if ((check+1) >> 16) check = (check+1) & 0xffff; in ipv4_change_dsfield() 37 check -= dsfield; in ipv4_change_dsfield() 38 check += check >> 16; /* adjust carry */ in ipv4_change_dsfield() 39 iph->check = (__force __sum16)htons(check); in ipv4_change_dsfield()
|