/linux-master/tools/testing/selftests/net/forwarding/ |
H A D | vxlan_symmetric_ipv6.sh | 124 ip link set dev $if_name master $vrf_name 125 ip link set dev $vrf_name up 126 ip link set dev $if_name up 128 ip address add $ip_addr/64 dev $if_name 129 ip neigh replace $gw_ip lladdr 00:00:5e:00:01:01 nud permanent \ 131 ip route add default vrf $vrf_name nexthop via $gw_ip 142 ip route del default vrf $vrf_name nexthop via $gw_ip 143 ip neigh del $gw_ip dev $if_name 144 ip address del $ip_addr/64 dev $if_name 146 ip lin [all...] |
H A D | tc_flower_router.sh | 13 ip route add 192.0.2.0/24 vrf v$h1 nexthop via 192.0.1.2 14 ip route add 192.0.3.0/24 vrf v$h1 nexthop via 192.0.1.2 19 ip route del 192.0.3.0/24 vrf v$h1 20 ip route del 192.0.2.0/24 vrf v$h1 29 ip route add 192.0.1.0/24 vrf v$h2 nexthop via 192.0.2.2 30 ip route add 192.0.3.0/24 vrf v$h2 nexthop via 192.0.2.2 35 ip route del 192.0.3.0/24 vrf v$h2 36 ip route del 192.0.1.0/24 vrf v$h2 45 ip route add 192.0.1.0/24 vrf v$h3 nexthop via 192.0.3.2 46 ip rout [all...] |
H A D | hw_stats_l3.sh | 57 ip route add 192.0.2.16/28 vrf v$h1 nexthop via 192.0.2.2 58 ip -6 route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2 63 ip -6 route del 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2 64 ip route del 192.0.2.16/28 vrf v$h1 nexthop via 192.0.2.2 73 ip route add 192.0.2.0/28 vrf v$h2 nexthop via 192.0.2.17 74 ip -6 route add 2001:db8:1::/64 vrf v$h2 nexthop via 2001:db8:2::2 79 ip -6 route del 2001:db8:1::/64 vrf v$h2 nexthop via 2001:db8:2::2 80 ip route del 192.0.2.0/28 vrf v$h2 nexthop via 192.0.2.17 87 ip link add name $rp1.200 link $rp1 type vlan id 200 88 ip lin [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | veth.sh | 28 ip netns del $ns 2>/dev/null 38 ip netns add $ns 39 ip -n $ns link set dev lo up 42 ip link add name veth$SRC type veth peer name veth$DST 45 ip link set dev veth$ns netns $BASE$ns up 46 ip -n $BASE$ns addr add dev veth$ns $BM_NET_V4$ns/24 47 ip -n $BASE$ns addr add dev veth$ns $BM_NET_V6$ns/64 nodad 59 local flag=`ip netns exec $BASE$target ethtool -k veth$target |\ 87 local cur_rx=`ip netns exec $BASE$target ethtool -l $dev |\ 89 local cur_tx=`ip netn [all...] |
H A D | xfrm_policy.sh | 38 ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tunnel priority 100 action allow 40 ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tunnel priority 100 action allow 52 ip -net $ns xfrm state add src $remote dst $me proto esp spi $spi_in enc aes $KEY_AES auth sha1 $KEY_SHA mode tunnel sel src $rnet dst $lnet 53 ip -net $ns xfrm state add src $me dst $remote proto esp spi $spi_out enc aes $KEY_AES auth sha1 $KEY_SHA mode tunnel sel src $lnet dst $rnet 75 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block 78 ip -net $ns xfrm policy add src 10.2.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block 81 ip -net $ns xfrm policy add src 10.2.0.0/23 dst 10.0.1.0/24 dir fwd priority 200 action block 107 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/23 dir fwd priority 200 action block 112 ip -net $ns xfrm policy add src 10.253.1.$((RANDOM%255))/$p dst 10.254.1.$((RANDOM%255))/$p dir fwd priority $((200+k)) action block 2>/dev/null 122 ip [all...] |
/linux-master/tools/testing/selftests/net/hsr/ |
H A D | hsr_ping.sh | 40 ip netns del $netns 61 ip netns exec ${netns} ping ${ping_args} $connect_addr >/dev/null 82 OUT="$(LANG=C ip netns exec ${netns} ping ${ping_args} $connect_addr | grep received)" 176 ip -net "$ns3" link set ns3eth1 down 179 ip -net "$ns3" link set ns3eth1 up 220 ip link add ns1eth1 netns "$ns1" type veth peer name ns2eth1 netns "$ns2" 221 ip link add ns1eth2 netns "$ns1" type veth peer name ns3eth1 netns "$ns3" 222 ip link add ns3eth2 netns "$ns3" type veth peer name ns2eth2 netns "$ns2" 225 ip -net "$ns1" link add name hsr1 type hsr slave1 ns1eth1 slave2 ns1eth2 supervision 45 version $HSRv proto 0 226 ip [all...] |
/linux-master/lib/lzo/ |
H A D | lzo1x_compress.c | 27 const unsigned char *ip; local 35 ip = in; 36 ii = ip; 37 ip += ti < 4 ? 4 - ti : 0; 45 ip += 1 + ((ip - ii) >> 5); 47 if (unlikely(ip >= ip_end)) 49 dv = get_unaligned_le32(ip); 52 const unsigned char *ir = ip + 4; 53 const unsigned char *limit = min(ip_end, ip 306 const unsigned char *ip = in; local [all...] |
/linux-master/tools/testing/selftests/netfilter/ |
H A D | nft_nat.sh | 18 for i in 0 1 2; do ip netns del ns$i-"$sfx";done 27 ip -Version > /dev/null 2>&1 29 echo "SKIP: Could not run test without ip tool" 33 ip netns add "$ns0" 41 ip netns add "$ns1" 47 ip netns add "$ns2" 53 ip link add veth0 netns "$ns0" type veth peer name eth0 netns "$ns1" > /dev/null 2>&1 58 ip link add veth1 netns "$ns0" type veth peer name eth0 netns "$ns2" 60 ip -net "$ns0" link set lo up 61 ip [all...] |
H A D | nft_queue.sh | 19 ip netns pids ${ns1} | xargs kill 2>/dev/null 20 ip netns pids ${ns2} | xargs kill 2>/dev/null 21 ip netns pids ${nsrouter} | xargs kill 2>/dev/null 23 ip netns del ${ns1} 24 ip netns del ${ns2} 25 ip netns del ${nsrouter} 37 ip -Version > /dev/null 2>&1 39 echo "SKIP: Could not run test without ip tool" 43 ip netns add ${nsrouter} 55 ip netn [all...] |
/linux-master/tools/testing/selftests/net/mptcp/ |
H A D | simult_flows.sh | 48 mptcp_lib_check_tools ip 72 ip link add ns1eth1 netns "$ns1" type veth peer name ns2eth1 netns "$ns2" 73 ip link add ns1eth2 netns "$ns1" type veth peer name ns2eth2 netns "$ns2" 74 ip link add ns2eth3 netns "$ns2" type veth peer name ns3eth1 netns "$ns3" 76 ip -net "$ns1" addr add 10.0.1.1/24 dev ns1eth1 77 ip -net "$ns1" addr add dead:beef:1::1/64 dev ns1eth1 nodad 78 ip -net "$ns1" link set ns1eth1 up mtu 1500 79 ip -net "$ns1" route add default via 10.0.1.2 80 ip -net "$ns1" route add default via dead:beef:1::2 82 ip [all...] |
/linux-master/arch/x86/kernel/ |
H A D | ftrace.c | 70 static const char *ftrace_call_replace(unsigned long ip, unsigned long addr) argument 76 return text_gen_insn(CALL_INSN_OPCODE, (void *)ip, (void *)addr); 79 static int ftrace_verify_code(unsigned long ip, const char *old_code) argument 91 if (copy_from_kernel_nofault(cur_code, (void *)ip, MCOUNT_INSN_SIZE)) { 112 ftrace_modify_code_direct(unsigned long ip, const char *old_code, argument 115 int ret = ftrace_verify_code(ip, old_code); 121 text_poke_queue((void *)ip, new_code, MCOUNT_INSN_SIZE, NULL); 123 text_poke_early((void *)ip, new_code, MCOUNT_INSN_SIZE); 129 unsigned long ip = rec->ip; local 156 unsigned long ip = rec->ip; local 183 unsigned long ip; local 326 void *ip, *dest; local 479 unsigned long ip; local 589 ftrace_jmp_replace(unsigned long ip, unsigned long addr) argument 594 ftrace_mod_jmp(unsigned long ip, void *func) argument 605 unsigned long ip = (unsigned long)(&ftrace_graph_call); local 612 unsigned long ip = (unsigned long)(&ftrace_graph_call); local 622 prepare_ftrace_return(unsigned long ip, unsigned long *parent, unsigned long frame_pointer) argument 657 ftrace_graph_func(unsigned long ip, unsigned long parent_ip, struct ftrace_ops *op, struct ftrace_regs *fregs) argument [all...] |
/linux-master/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | devlink_trap_acl_drops.sh | 39 ip link add dev br0 type bridge vlan_filtering 1 mcast_snooping 0 41 ip link set dev $swp1 master br0 42 ip link set dev $swp2 master br0 44 ip link set dev br0 up 45 ip link set dev $swp1 up 46 ip link set dev $swp2 up 57 ip link set dev $swp2 down 58 ip link set dev $swp1 down 60 ip link del dev br0 98 tc filter add dev $swp2 egress protocol ip pre [all...] |
H A D | rif_mac_profiles_occ.sh | 23 ip link set $h1 up 24 ip link set $h2 up 31 ip link set $h2 down 32 ip link set $h1 down 57 ip -b $batch_file &> /dev/null 67 ip link set $h1.10 address 00:12:34:56:78:99 72 ip link set $h1.10 address $h1_10_mac 90 ip link set $h1.20 address 00:11:11:11:11:11 101 ip link set $h1.20 address $h1_20_mac 114 ip lin [all...] |
H A D | fib_offload.sh | 40 ip link set dev $spine_p1 up 41 ip link set dev $spine_p2 up 52 ip link set dev $spine_p2 down 53 ip link set dev $spine_p1 down 65 num=$(ip -6 route show match ${pfx} | grep "offload" | wc -l) 79 ip -6 route add 2001:db8:3::/64 dev $spine_p1 metric 100 85 ip -6 route append 2001:db8:3::/64 dev $spine_p1 metric 200 93 ip -6 route append 2001:db8:3::/64 dev $spine_p1 metric 10 103 ip -6 route flush 2001:db8:3::/64 dev $spine_p1 104 ip [all...] |
H A D | fib.sh | 100 ip -n $ns link add name dummy1 type dummy 101 ip -n $ns link set dev dummy1 up 103 ip -n $ns route add table local 192.0.2.1/32 dev dummy1 107 ip -n $ns route add table main 192.0.2.1/32 dev dummy1 115 ip -n $ns route add table main 192.0.2.2/32 dev dummy1 119 ip -n $ns route add table local 192.0.2.2/32 dev dummy1 128 ip -n $ns link del dev dummy1 197 ip -n $ns link add name dummy1 type dummy 198 ip -n $ns link set dev dummy1 up 200 ip [all...] |
/linux-master/arch/arm/lib/ |
H A D | io-writesw-armv4.S | 22 .Loutsw_align: movs ip, r1, lsl #31 40 .Loutsw_8_lp: ldmia r1!, {r3, r4, r5, ip} 45 outword ip 51 ldmia r1!, {r3, ip} 53 outword ip 84 1: mov ip, r3, lsr #8 85 strh ip, [r0] 86 2: mov ip, r3, pull_hbyte0 89 orr ip, ip, r [all...] |
H A D | memset.S | 22 mov ip, r0 @ preserve r0 as return value 25 * we know that the pointer in ip is aligned to a word boundary. 46 stmiage ip!, {r1, r3, r8, lr} @ 64 bytes at a time. 47 stmiage ip!, {r1, r3, r8, lr} 48 stmiage ip!, {r1, r3, r8, lr} 49 stmiage ip!, {r1, r3, r8, lr} 56 stmiane ip!, {r1, r3, r8, lr} 57 stmiane ip!, {r1, r3, r8, lr} 59 stmiane ip!, {r1, r3, r8, lr} 81 tstgt ip, #3 [all...] |
H A D | memmove.S | 31 subs ip, r0, r1 32 cmphi r2, ip 45 ands ip, r0, #3 48 ands ip, r1, #3 55 CALGN( ands ip, r0, #31 ) 56 CALGN( sbcsne r4, ip, r2 ) @ C is always set here 59 CALGN( subs r2, r2, ip ) @ C is set here 60 CALGN( rsb ip, ip, #32 ) 61 CALGN( add pc, r4, ip ) [all...] |
H A D | muldi3.S | 30 mov ip, xl, lsr #16 32 bic xl, xl, ip, lsl #16 34 mla xh, yh, ip, xh 37 mul ip, yl, ip 40 adds xl, xl, ip, lsl #16 41 adc xh, xh, ip, lsr #16
|
/linux-master/fs/jfs/ |
H A D | inode.c | 199 int jfs_get_block(struct inode *ip, sector_t lblock, argument 207 s32 xlen = bh_result->b_size >> ip->i_blkbits; 213 IWRITE_LOCK(ip, RDWRLOCK_NORMAL); 215 IREAD_LOCK(ip, RDWRLOCK_NORMAL); 217 if (((lblock64 << ip->i_sb->s_blocksize_bits) < ip->i_size) && 218 (!xtLookup(ip, lblock64, xlen, &xflag, &xaddr, &xlen, 0)) && 230 rc = extRecord(ip, &xad); 236 map_bh(bh_result, ip->i_sb, xaddr); 237 bh_result->b_size = xlen << ip 365 jfs_truncate_nolock(struct inode *ip, loff_t length) argument 405 jfs_truncate(struct inode *ip) argument [all...] |
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_xdp_features.sh | 14 ip netns add ${NS} 16 ip link add v1 type veth peer name v0 netns ${NS} 18 ip link set v1 up 19 ip addr add $V1_IP4/24 dev v1 20 ip addr add $V1_IP6/64 nodad dev v1 21 ip -n ${NS} link set dev v0 up 22 ip -n ${NS} addr add $V0_IP4/24 dev v0 23 ip -n ${NS} addr add $V0_IP6/64 nodad dev v0 28 ip netns exec ${NS} ethtool -K v0 gro on 29 ip netn [all...] |
H A D | test_sock_addr.sh | 29 ip link add dev ${TEST_IF} type veth peer name ${TEST_IF_PEER} 30 ip link set ${TEST_IF} up 31 ip link set ${TEST_IF_PEER} up 33 ip -4 addr add ${TEST_IPv4} dev ${TEST_IF} 34 ip -6 addr add ${TEST_IPv6} dev ${TEST_IF} 40 ip link del ${TEST_IF} 2>/dev/null || : 41 ip link del ${TEST_IF_PEER} 2>/dev/null || :
|
/linux-master/tools/testing/selftests/drivers/net/netdevsim/ |
H A D | peer.sh | 29 ip netns add nssv 30 ip netns add nscl 37 ip link set $NSIM_DEV_1_NAME netns nssv 38 ip link set $NSIM_DEV_2_NAME netns nscl 40 ip netns exec nssv ip addr add '192.168.1.1/24' dev $NSIM_DEV_1_NAME 41 ip netns exec nscl ip addr add '192.168.1.2/24' dev $NSIM_DEV_2_NAME 43 ip netns exec nssv ip lin [all...] |
/linux-master/include/linux/netfilter/ipset/ |
H A D | pfxlen.h | 16 return ip_set_netmask_map[pfxlen].ip; 28 return (__force u32) ip_set_hostmask_map[pfxlen].ip; 46 ip6_netmask(union nf_inet_addr *ip, u8 prefix) argument 48 ip->ip6[0] &= ip_set_netmask6(prefix)[0]; 49 ip->ip6[1] &= ip_set_netmask6(prefix)[1]; 50 ip->ip6[2] &= ip_set_netmask6(prefix)[2]; 51 ip->ip6[3] &= ip_set_netmask6(prefix)[3];
|
/linux-master/samples/bpf/ |
H A D | test_lwt_bpf.sh | 31 MAC=$(ip netns exec $2 ip link show $1 | grep ether | awk '{print $2}') 33 MAC=$(ip link show $1 | grep ether | awk '{print $2}') 43 ip link del $VETH0 2> /dev/null 44 ip link del $VETH1 2> /dev/null 45 ip link del $VETH2 2> /dev/null 46 ip link del $VETH3 2> /dev/null 47 ip netns exec $NS1 killall netserver 48 ip netns delete $NS1 2> /dev/null 49 ip netn [all...] |