/linux-master/tools/testing/selftests/net/netfilter/ |
H A D | nft_conntrack_helper.sh | 21 ip netns pids "$ns1" | xargs kill 2>/dev/null 23 ip netns del "$ns1" 24 ip netns del "$ns2" 31 if ! ip link add veth0 netns "$ns1" type veth peer name veth0 netns "$ns2" > /dev/null 2>&1;then 36 ip -net "$ns1" link set veth0 up 37 ip -net "$ns2" link set veth0 up 39 ip -net "$ns1" addr add 10.0.1.1/24 dev veth0 40 ip -net "$ns1" addr add dead:1::1/64 dev veth0 nodad 42 ip -net "$ns2" addr add 10.0.1.2/24 dev veth0 43 ip [all...] |
H A D | nft_synproxy.sh | 16 ip netns pids "$ns1" | xargs kill 2>/dev/null 17 ip netns pids "$ns2" | xargs kill 2>/dev/null 24 ip link add veth0 netns "$nsr" type veth peer name eth0 netns "$ns1" 25 ip link add veth1 netns "$nsr" type veth peer name eth0 netns "$ns2" 28 ip -net "$nsr" link set "$dev" up 31 ip -net "$nsr" addr add 10.0.1.1/24 dev veth0 32 ip -net "$nsr" addr add 10.0.2.1/24 dev veth1 34 ip netns exec "$nsr" sysctl -q net.ipv4.conf.veth0.forwarding=1 35 ip netns exec "$nsr" sysctl -q net.ipv4.conf.veth1.forwarding=1 36 ip netn [all...] |
/linux-master/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | vxlan.sh | 45 ip link set dev $swp1 up 46 ip link set dev $swp2 up 53 ip link set dev $swp2 down 54 ip link set dev $swp1 down 59 ip link set dev $swp1 master br0 61 ip link set dev vxlan0 master br0 64 ip link set dev $swp1 nomaster 66 ip link set dev $swp1 master br0 72 ip link set dev $swp1 master br0 74 ip lin [all...] |
H A D | mirror_gre_scale.sh | 62 ip address add dev $h1 $(mirror_gre_ipv6_addr 1 $i)::1/64 63 ip address add dev $h2 $(mirror_gre_ipv6_addr 1 $i)::2/64 65 ip address add dev $swp3 $(mirror_gre_ipv6_addr 2 $i)::1/64 66 ip address add dev $h3 $(mirror_gre_ipv6_addr 2 $i)::2/64 76 ip link set $htun vrf v$h3 99 ip address del dev $h3 $(mirror_gre_ipv6_addr 2 $i)::2/64 100 ip address del dev $swp3 $(mirror_gre_ipv6_addr 2 $i)::1/64 102 ip address del dev $h2 $(mirror_gre_ipv6_addr 1 $i)::2/64 103 ip address del dev $h1 $(mirror_gre_ipv6_addr 1 $i)::1/64 167 ip lin [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | fib_nexthop_multiprefix.sh | 76 ip netns exec ${ns} sysctl -q -w net.ipv6.conf.all.keep_addr_on_down=1 79 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=0 82 ip netns exec $ns sysctl -q -w net.ipv4.ip_forward=1 83 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=1 112 ip -netns ${h[$i]} li add eth0 type veth peer name r1h${i} 113 ip -netns ${h[$i]} li set eth0 up 114 ip -netns ${h[$i]} li set r1h${i} netns ${r[1]} name eth${i} up 116 ip -netns ${h[$i]} addr add dev eth0 172.16.10${i}.1/24 117 ip -netns ${h[$i]} -6 addr add dev eth0 2001:db8:10${i}::1/64 118 ip [all...] |
H A D | cmsg_so_mark.sh | 22 ip netns exec $NS sysctl -w net.ipv4.ping_group_range='0 2147483647' > /dev/null 25 ip -netns $NS link add type dummy 26 ip -netns $NS link set dev dummy0 up 27 ip -netns $NS addr add $IP4 dev dummy0 28 ip -netns $NS addr add $IP6 dev dummy0 30 ip -netns $NS rule add fwmark $MARK lookup 300 31 ip -6 -netns $NS rule add fwmark $MARK lookup 300 32 ip -netns $NS route add prohibit any table 300 33 ip -6 -netns $NS route add prohibit any table 300 60 ip netn [all...] |
H A D | icmp.sh | 44 ip -netns $NS1 link add veth0 type veth peer name veth0 netns $NS2 45 ip -netns $NS1 link set dev veth0 up 46 ip -netns $NS2 link set dev veth0 up 47 ip -netns $NS1 addr add $H1_IP dev veth0 48 ip -netns $NS1 addr add $H1_IP6/64 dev veth0 nodad 49 ip -netns $NS2 addr add $H2_IP6/64 dev veth0 nodad 50 ip -netns $NS1 route add $RT1 via inet6 $H2_IP6 51 ip -netns $NS2 route add $RT2 via inet6 $H1_IP6 54 ip netns exec $NS2 sysctl -qw net.ipv4.icmp_ratelimit=0 net.ipv4.ip_forward=1 59 ip netn [all...] |
H A D | rtnetlink.sh | 133 run_cmd ip link add name "$devdummy" type dummy 134 run_cmd ip link set "$devdummy" up 139 run_cmd ip link del dev "$devdummy" 146 run_cmd ip netconf show dev "$dev" 148 run_cmd ip -$f netconf show dev "$dev" 152 end_test "FAIL: ip netconf show $dev" 165 run_cmd ip link add name "$devbr" type bridge 166 run_cmd ip link set dev "$devdummy" master "$devbr" 167 run_cmd ip link set "$devbr" up 168 run_cmd ip lin [all...] |
H A D | stress_reuseport_listen.sh | 11 ip netns exec $NS sysctl -q -w net.ipv6.ip_nonlocal_bind=1 25 ip netns exec $NS ./stress_reuseport_listen 300 80
|
/linux-master/drivers/pwm/ |
H A D | pwm-bcm-iproc.c | 46 static void iproc_pwmc_enable(struct iproc_pwmc *ip, unsigned int channel) argument 50 value = readl(ip->base + IPROC_PWM_CTRL_OFFSET); 52 writel(value, ip->base + IPROC_PWM_CTRL_OFFSET); 58 static void iproc_pwmc_disable(struct iproc_pwmc *ip, unsigned int channel) argument 62 value = readl(ip->base + IPROC_PWM_CTRL_OFFSET); 64 writel(value, ip->base + IPROC_PWM_CTRL_OFFSET); 73 struct iproc_pwmc *ip = to_iproc_pwmc(chip); local 77 value = readl(ip->base + IPROC_PWM_CTRL_OFFSET); 89 rate = clk_get_rate(ip->clk); 96 value = readl(ip 117 struct iproc_pwmc *ip = to_iproc_pwmc(chip); local 190 struct iproc_pwmc *ip; local [all...] |
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_lwt_ip_encap.sh | 112 ip netns add "${NS1}" 113 ip netns add "${NS2}" 114 ip netns add "${NS3}" 117 ip netns exec ${NS1} sysctl -wq net.ipv4.conf.all.rp_filter=0 118 ip netns exec ${NS2} sysctl -wq net.ipv4.conf.all.rp_filter=0 119 ip netns exec ${NS3} sysctl -wq net.ipv4.conf.all.rp_filter=0 120 ip netns exec ${NS1} sysctl -wq net.ipv4.conf.default.rp_filter=0 121 ip netns exec ${NS2} sysctl -wq net.ipv4.conf.default.rp_filter=0 122 ip netns exec ${NS3} sysctl -wq net.ipv4.conf.default.rp_filter=0 125 ip netn [all...] |
H A D | test_tc_tunnel.sh | 29 ip netns add "${ns1}" 30 ip netns add "${ns2}" 32 ip link add dev veth1 mtu 1500 netns "${ns1}" type veth \ 35 ip netns exec "${ns1}" ethtool -K veth1 tso off 37 ip -netns "${ns1}" link set veth1 up 38 ip -netns "${ns2}" link set veth2 up 40 ip -netns "${ns1}" -4 addr add "${ns1_v4}/24" dev veth1 41 ip -netns "${ns2}" -4 addr add "${ns2_v4}/24" dev veth2 42 ip -netns "${ns1}" -6 addr add "${ns1_v6}/64" dev veth1 nodad 43 ip [all...] |
H A D | xsk_prereqs.sh | 27 if [ $(ip link add $1 type veth 2>/dev/null; echo $?;) != 0 ]; then 31 ip link del $1 58 ip link set $1 mtu $2 59 ip link set $1 xdp off 60 ip link set $1 xdpgeneric off 65 [ $(ip link show $1 &>/dev/null; echo $?;) == 0 ] && 66 { ip link del $1; } 76 [ ! $(type -P ip) ] && { echo "'ip' not found. Skipping tests."; test_exit $ksft_skip; }
|
/linux-master/samples/bpf/ |
H A D | test_cgrp2_sock2.sh | 11 ip netns add at_ns0 12 ip link add veth0 type veth peer name veth0b 13 ip link set veth0 netns at_ns0 14 ip netns exec at_ns0 sysctl -q net.ipv6.conf.veth0.disable_ipv6=0 15 ip netns exec at_ns0 ip addr add 172.16.1.100/24 dev veth0 16 ip netns exec at_ns0 ip addr add 2401:db00::1/64 dev veth0 nodad 17 ip netns exec at_ns0 ip lin [all...] |
/linux-master/fs/xfs/ |
H A D | xfs_bmap_util.h | 33 void xfs_bmap_punch_delalloc_range(struct xfs_inode *ip, 42 int xfs_getbmap(struct xfs_inode *ip, struct getbmapx *bmv, 51 int xfs_bmap_last_extent(struct xfs_trans *tp, struct xfs_inode *ip, 56 int xfs_alloc_file_space(struct xfs_inode *ip, xfs_off_t offset, 58 int xfs_free_file_space(struct xfs_inode *ip, xfs_off_t offset, 66 bool xfs_can_free_eofblocks(struct xfs_inode *ip, bool force); 67 int xfs_free_eofblocks(struct xfs_inode *ip); 69 int xfs_swap_extents(struct xfs_inode *ip, struct xfs_inode *tip, 72 xfs_daddr_t xfs_fsb_to_db(struct xfs_inode *ip, xfs_fsblock_t fsb); 75 int xfs_bmap_count_blocks(struct xfs_trans *tp, struct xfs_inode *ip, [all...] |
H A D | xfs_iunlink_item.h | 16 struct xfs_inode *ip; member in struct:xfs_iunlink_item 24 int xfs_iunlink_log_inode(struct xfs_trans *tp, struct xfs_inode *ip,
|
/linux-master/arch/mips/kernel/ |
H A D | ftrace.c | 40 #define JAL 0x0c000000 /* jump & link: ip --> ra, jump to target */ 73 static int ftrace_modify_code(unsigned long ip, unsigned int new_code) argument 77 /* *(unsigned int *)ip = new_code; */ 78 safe_store_code(new_code, ip, faulted); 83 flush_icache_range(ip, ip + 8); 89 static int ftrace_modify_code_2(unsigned long ip, unsigned int new_code1, argument 94 safe_store_code(new_code1, ip, faulted); 98 ip += 4; 99 safe_store_code(new_code2, ip, faulte 109 ftrace_modify_code_2r(unsigned long ip, unsigned int new_code1, unsigned int new_code2) argument 166 unsigned long ip = rec->ip; local 190 unsigned long ip = rec->ip; local 254 unsigned long sp, ip, tmp; local [all...] |
/linux-master/fs/jfs/ |
H A D | jfs_extent.c | 54 * ip - the inode of the file. 70 extAlloc(struct inode *ip, s64 xlen, s64 pno, xad_t * xp, bool abnr) argument 72 struct jfs_sb_info *sbi = JFS_SBI(ip->i_sb); 78 txBeginAnon(ip->i_sb); 81 mutex_lock(&JFS_IP(ip)->commit_mutex); 122 if ((rc = extBalloc(ip, hint ? hint : INOHINT(ip), &nxlen, &nxaddr))) { 123 mutex_unlock(&JFS_IP(ip)->commit_mutex); 128 rc = dquot_alloc_block(ip, nxlen); 130 dbFree(ip, nxadd 192 extHint(struct inode *ip, s64 offset, xad_t * xp) argument 252 extRecord(struct inode *ip, xad_t * xp) argument 299 extBalloc(struct inode *ip, s64 hint, s64 * nblocks, s64 * blkno) argument [all...] |
H A D | jfs_discard.c | 23 * ip - pointer to in-core inode 32 void jfs_issue_discard(struct inode *ip, u64 blkno, u64 nblocks) argument 34 struct super_block *sb = ip->i_sb; 58 * ip - pointer to in-core inode; 65 int jfs_ioc_trim(struct inode *ip, struct fstrim_range *range) argument 67 struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; 68 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; 97 agno = BLKTOAG(start, JFS_SBI(ip->i_sb)); 98 agno_end = BLKTOAG(end, JFS_SBI(ip->i_sb)); 100 trimmed += dbDiscardAG(ip, agn [all...] |
/linux-master/net/netfilter/ipset/ |
H A D | ip_set_hash_ip.c | 4 /* Kernel module implementing an IP set type: the hash:ip type */ 8 #include <linux/ip.h> 12 #include <net/ip.h> 32 IP_SET_MODULE_DESC("hash:ip", IPSET_TYPE_REV_MIN, IPSET_TYPE_REV_MAX); 33 MODULE_ALIAS("ip_set_hash:ip"); 45 __be32 ip; member in struct:hash_ip4_elem 55 return e1->ip == e2->ip; 61 if (nla_put_ipaddr4(skb, IPSET_ATTR_IP, e->ip)) 72 next->ip 88 __be32 ip; local 107 u32 ip = 0, ip_to = 0, hosts, i = 0; local 177 union nf_inet_addr ip; member in struct:hash_ip6_elem [all...] |
/linux-master/lib/zstd/compress/ |
H A D | hist.c | 32 const BYTE* ip = (const BYTE*)src; local 33 const BYTE* const end = ip + srcSize; 40 while (ip<end) { 41 assert(*ip <= maxSymbolValue); 42 count[*ip++]++; 72 const BYTE* ip = (const BYTE*)source; local 73 const BYTE* const iend = ip+sourceSize; 91 { U32 cached = MEM_read32(ip); ip += 4; 92 while (ip < ien [all...] |
/linux-master/tools/testing/selftests/net/forwarding/ |
H A D | mirror_gre_bound.sh | 80 ip link set h3-gt4 vrf v$h3 84 ip link set h3-gt6 vrf v$h3 100 ip link add name br1 type bridge vlan_filtering 1 101 ip link set dev br1 addrgenmode none 102 ip link set dev br1 up 104 ip link set dev $swp1 master br1 105 ip link set dev $swp1 up 107 ip link set dev $swp2 master br1 108 ip link set dev $swp2 up 116 ip lin [all...] |
H A D | gre_multipath_nh_res.sh | 75 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2 76 ip route add vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2 81 ip route del vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2 82 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2 95 ip route add vrf v$ol1 192.0.2.66/32 via 192.0.2.130 99 ip route add vrf v$ol1 192.0.2.82/32 via 192.0.2.146 101 ip -6 nexthop add id 101 dev g1a 102 ip -6 nexthop add id 102 dev g1b 103 ip nexthop add id 103 group 101/102 type resilient buckets 512 \ 106 ip rout [all...] |
H A D | gre_multipath_nh.sh | 75 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2 76 ip route add vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2 81 ip route del vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2 82 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2 95 ip route add vrf v$ol1 192.0.2.66/32 via 192.0.2.130 99 ip route add vrf v$ol1 192.0.2.82/32 via 192.0.2.146 101 ip -6 nexthop add id 101 dev g1a 102 ip -6 nexthop add id 102 dev g1b 103 ip nexthop add id 103 group 101/102 105 ip rout [all...] |
H A D | ip6gre_lib.sh | 158 ip route add vrf v$h1 203.0.113.0/24 via 198.51.100.2 159 ip -6 route add vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2 164 ip -6 route del vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2 165 ip route del vrf v$h1 203.0.113.0/24 via 198.51.100.2 172 ip route add vrf v$h2 198.51.100.0/24 via 203.0.113.2 173 ip -6 route add vrf v$h2 2001:db8:1::/64 via 2001:db8:2::2 178 ip -6 route del vrf v$h2 2001:db8:1::/64 via 2001:db8:2::2 179 ip route del vrf v$h2 198.51.100.0/24 via 203.0.113.2 188 ip link set dev $ol1 up 191 ip lin [all...] |