/linux-master/tools/testing/selftests/net/forwarding/ |
H A D | vxlan_symmetric.sh | 122 ip link set dev $if_name master $vrf_name 123 ip link set dev $vrf_name up 124 ip link set dev $if_name up 126 ip address add $ip_addr/24 dev $if_name 127 ip neigh replace $gw_ip lladdr 00:00:5e:00:01:01 nud permanent \ 129 ip route add default vrf $vrf_name nexthop via $gw_ip 140 ip route del default vrf $vrf_name nexthop via $gw_ip 141 ip neigh del $gw_ip dev $if_name 142 ip address del $ip_addr/24 dev $if_name 144 ip lin [all...] |
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...] |
/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/fs/xfs/ |
H A D | xfs_inode.c | 53 struct xfs_inode *ip) 59 if (xfs_is_always_cow_inode(ip)) 61 if ((ip->i_diflags & XFS_DIFLAG_EXTSIZE) && ip->i_extsize) 62 return ip->i_extsize; 63 if (XFS_IS_REALTIME_INODE(ip) && 64 ip->i_mount->m_sb.sb_rextsize > 1) 65 return ip->i_mount->m_sb.sb_rextsize; 77 struct xfs_inode *ip) 82 if (ip 52 xfs_get_extsz_hint( struct xfs_inode *ip) argument 76 xfs_get_cowextsz_hint( struct xfs_inode *ip) argument 108 xfs_ilock_data_map_shared( struct xfs_inode *ip) argument 120 xfs_ilock_attr_map_shared( struct xfs_inode *ip) argument 182 xfs_ilock( xfs_inode_t *ip, uint lock_flags) argument 225 xfs_ilock_nowait( xfs_inode_t *ip, uint lock_flags) argument 285 xfs_iunlock( xfs_inode_t *ip, uint lock_flags) argument 314 xfs_ilock_demote( xfs_inode_t *ip, uint lock_flags) argument 333 xfs_assert_ilocked( struct xfs_inode *ip, uint lock_flags) argument 570 xfs_ip2xflags( struct xfs_inode *ip) argument 661 xfs_inode_inherit_flags( struct xfs_inode *ip, const struct xfs_inode *pip) argument 728 xfs_inode_inherit_flags2( struct xfs_inode *ip, const struct xfs_inode *pip) argument 771 struct xfs_inode *ip; local 897 xfs_droplink( struct xfs_trans *tp, struct xfs_inode *ip) argument 926 xfs_bumplink( struct xfs_trans *tp, struct xfs_inode *ip) argument 972 xfs_dir_update_hook( struct xfs_inode *dp, struct xfs_inode *ip, int delta, const struct xfs_name *name) argument 1031 struct xfs_inode *ip = NULL; local 1212 struct xfs_inode *ip = NULL; local 1441 xfs_itruncate_clear_reflink_flags( struct xfs_inode *ip) argument 1479 xfs_itruncate_extents_flags( struct xfs_trans **tpp, struct xfs_inode *ip, int whichfork, xfs_fsize_t new_size, int flags) argument 1549 xfs_release( xfs_inode_t *ip) argument 1681 xfs_inactive_truncate( struct xfs_inode *ip) argument 1730 xfs_inactive_ifree( struct xfs_inode *ip) argument 1821 xfs_inode_needs_inactive( struct xfs_inode *ip) argument 1875 xfs_inactive_health( struct xfs_inode *ip) argument 1912 xfs_inactive( xfs_inode_t *ip) argument 2068 struct xfs_inode *ip; local 2101 struct xfs_inode *ip; local 2217 xfs_iunlink_insert_inode( struct xfs_trans *tp, struct xfs_perag *pag, struct xfs_buf *agibp, struct xfs_inode *ip) argument 2277 xfs_iunlink( struct xfs_trans *tp, struct xfs_inode *ip) argument 2304 xfs_iunlink_remove_inode( struct xfs_trans *tp, struct xfs_perag *pag, struct xfs_buf *agibp, struct xfs_inode *ip) argument 2379 xfs_iunlink_remove( struct xfs_trans *tp, struct xfs_perag *pag, struct xfs_inode *ip) argument 2410 struct xfs_inode *ip; local 2582 xfs_ifree( struct xfs_trans *tp, struct xfs_inode *ip) argument 2658 xfs_iunpin( struct xfs_inode *ip) argument 2671 __xfs_iunpin_wait( struct xfs_inode *ip) argument 2688 xfs_iunpin_wait( struct xfs_inode *ip) argument 2723 xfs_remove( struct xfs_inode *dp, struct xfs_name *name, struct xfs_inode *ip) argument 3583 xfs_iflush( struct xfs_inode *ip, struct xfs_buf *bp) argument 3751 struct xfs_inode *ip; local 3859 xfs_irele( struct xfs_inode *ip) argument 3870 xfs_log_force_inode( struct xfs_inode *ip) argument 4056 xfs_inode_reload_unlinked_bucket( struct xfs_trans *tp, struct xfs_inode *ip) argument 4145 xfs_inode_reload_unlinked( struct xfs_inode *ip) argument 4166 xfs_ifork_zapped( const struct xfs_inode *ip, int whichfork) argument 4192 xfs_inode_count_blocks( struct xfs_trans *tp, struct xfs_inode *ip, xfs_filblks_t *dblocks, xfs_filblks_t *rblocks) argument 4210 struct xfs_inode *ip = XFS_I(inode); local 4269 xfs_inode_alloc_unitsize( struct xfs_inode *ip) argument [all...] |
/linux-master/fs/xfs/scrub/ |
H A D | nlinks_repair.c | 59 struct xfs_inode *ip, 63 struct xfs_mount *mp = ip->i_mount; 67 if (ip == mp->m_rootip || ip == sc->orphanage) 80 pag = xfs_perag_get(sc->mp, XFS_INO_TO_AGNO(sc->mp, sc->ip->i_ino)); 81 error = xfs_iunlink_remove(sc->tp, pag, sc->ip); 97 struct xfs_inode *ip = sc->ip; local 109 if (xrep_is_tempfile(ip)) 114 * prepare for a link count repair that could involve @ip bein 57 xrep_nlinks_is_orphaned( struct xfs_scrub *sc, struct xfs_inode *ip, unsigned int actual_nlink, const struct xchk_nlink *obs) argument [all...] |
/linux-master/fs/xfs/libxfs/ |
H A D | xfs_bmap.h | 22 struct xfs_inode *ip; /* incore inode pointer */ member in struct:xfs_bmalloca 171 #define xfs_valid_startblock(ip, startblock) \ 172 ((startblock) != 0 || XFS_IS_REALTIME_INODE(ip)) 179 int xfs_bmap_add_attrfork(struct xfs_trans *tp, struct xfs_inode *ip, 182 struct xfs_inode *ip, int whichfork); 183 int xfs_bmap_local_to_extents(struct xfs_trans *tp, struct xfs_inode *ip, 186 struct xfs_inode *ip, struct xfs_ifork *ifp, 190 int xfs_bmap_first_unused(struct xfs_trans *tp, struct xfs_inode *ip, 192 int xfs_bmap_last_before(struct xfs_trans *tp, struct xfs_inode *ip, 194 int xfs_bmap_last_offset(struct xfs_inode *ip, xfs_fileoff_ [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/arch/x86/kernel/ |
H A D | ftrace.c | 71 static const char *ftrace_call_replace(unsigned long ip, unsigned long addr) argument 77 return text_gen_insn(CALL_INSN_OPCODE, (void *)ip, (void *)addr); 80 static int ftrace_verify_code(unsigned long ip, const char *old_code) argument 92 if (copy_from_kernel_nofault(cur_code, (void *)ip, MCOUNT_INSN_SIZE)) { 113 ftrace_modify_code_direct(unsigned long ip, const char *old_code, argument 116 int ret = ftrace_verify_code(ip, old_code); 122 text_poke_queue((void *)ip, new_code, MCOUNT_INSN_SIZE, NULL); 124 text_poke_early((void *)ip, new_code, MCOUNT_INSN_SIZE); 130 unsigned long ip = rec->ip; local 157 unsigned long ip = rec->ip; local 184 unsigned long ip; local 316 void *ip, *dest; local 469 unsigned long ip; local 579 ftrace_jmp_replace(unsigned long ip, unsigned long addr) argument 584 ftrace_mod_jmp(unsigned long ip, void *func) argument 595 unsigned long ip = (unsigned long)(&ftrace_graph_call); local 602 unsigned long ip = (unsigned long)(&ftrace_graph_call); local 612 prepare_ftrace_return(unsigned long ip, unsigned long *parent, unsigned long frame_pointer) argument 647 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/tools/testing/selftests/net/netfilter/ |
H A D | nft_nat.sh | 16 ip netns pids "$ns0" | xargs kill 2>/dev/null 17 ip netns pids "$ns1" | xargs kill 2>/dev/null 18 ip netns pids "$ns2" | xargs kill 2>/dev/null 32 if ! ip link add veth0 netns "$ns0" type veth peer name eth0 netns "$ns1" > /dev/null 2>&1;then 36 ip link add veth1 netns "$ns0" type veth peer name eth0 netns "$ns2" 38 ip -net "$ns0" link set veth0 up 39 ip -net "$ns0" addr add 10.0.1.1/24 dev veth0 40 ip -net "$ns0" addr add dead:1::1/64 dev veth0 nodad 42 ip -net "$ns0" link set veth1 up 43 ip [all...] |
/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/drivers/net/hw/ |
H A D | hw_stats_l3.sh | 59 ip route add 192.0.2.16/28 vrf v$h1 nexthop via 192.0.2.2 60 ip -6 route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2 65 ip -6 route del 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2 66 ip route del 192.0.2.16/28 vrf v$h1 nexthop via 192.0.2.2 75 ip route add 192.0.2.0/28 vrf v$h2 nexthop via 192.0.2.17 76 ip -6 route add 2001:db8:1::/64 vrf v$h2 nexthop via 2001:db8:2::2 81 ip -6 route del 2001:db8:1::/64 vrf v$h2 nexthop via 2001:db8:2::2 82 ip route del 192.0.2.0/28 vrf v$h2 nexthop via 192.0.2.17 89 ip link add name $rp1.200 link $rp1 type vlan id 200 90 ip lin [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...] |
/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...] |