Home
last modified time | relevance | path

Searched full:ip (Results 1 – 25 of 2624) sorted by relevance

12345678910>>...105

/linux/sound/soc/sti/
H A Duniperif.h19 #define GET_UNIPERIF_REG(ip, offset, shift, mask) \ argument
20 ((readl_relaxed(ip->base + offset) >> shift) & mask)
21 #define SET_UNIPERIF_REG(ip, offset, shift, mask, value) \ argument
22 writel_relaxed(((readl_relaxed(ip->base + offset) & \
23 ~(mask << shift)) | (((value) & mask) << shift)), ip->base + offset)
24 #define SET_UNIPERIF_BIT_REG(ip, offset, shift, mask, value) \ argument
25 writel_relaxed((((value) & mask) << shift), ip->base + offset)
31 #define UNIPERIF_SOFT_RST_OFFSET(ip) 0x0000 argument
32 #define GET_UNIPERIF_SOFT_RST(ip) \ argument
33 ((ip)->ver < SND_ST_UNIPERIF_VERSION_UNI_PLR_TOP_1_0 ? \
[all …]
/linux/arch/arm/lib/
H A Dio-writesw-armv3.S43 mov ip, r3, lsl #16
44 orr ip, ip, ip, lsr #16
45 str ip, [r0]
47 mov ip, r3, lsr #16
48 orr ip, ip, ip, lsl #16
49 str ip, [r0]
51 mov ip, r4, lsl #16
52 orr ip, ip, ip, lsr #16
53 str ip, [r0]
55 mov ip, r4, lsr #16
[all …]
H A Dio-readsw-armv4.S18 .Linsw_align: movs ip, r1, lsl #31
20 ldrh ip, [r0]
22 strh ip, [r1], #2
44 ldrh ip, [r0]
45 pack r5, r5, ip
47 ldrh ip, [r0]
49 pack ip, ip, lr
52 stmia r1!, {r3 - r5, ip}
63 ldrh ip, [r0]
64 pack r4, r4, ip
[all …]
/linux/arch/arm/mach-davinci/
H A Dsleep.S43 ldr ip, CACHE_FLUSH
44 blx ip
53 ldr ip, [r0, #DDR2_SDRCR_OFFSET]
54 bic ip, ip, #DDR2_SRPD_BIT
55 orr ip, ip, #DDR2_LPMODEN_BIT
56 str ip, [r0, #DDR2_SDRCR_OFFSET]
58 ldr ip, [r0, #DDR2_SDRCR_OFFSET]
59 orr ip, ip, #DDR2_MCLKSTOPEN_BIT
60 str ip, [r0, #DDR2_SDRCR_OFFSET]
62 mov ip, #PHYRDY_CYCLES
[all …]
/linux/tools/testing/selftests/bpf/
H A Dtest_lwt_seg6local.sh
H A Dtest_tunnel.sh
H A Dtest_lwt_ip_encap.sh
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dvxlan.sh45 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 link set dev vxlan0 master br0 &> /dev/null
[all …]
H A Dq_in_q_veto.sh28 ip link set dev $swp1 up
29 ip link set dev $swp2 up
38 ip link set dev $swp2 down
39 ip link set dev $swp1 down
49 ip link add dev br0 type bridge vlan_filtering 1 \
51 ip link set dev br0 addrgenmode none
53 ip link set dev br0 up
54 ip link set dev $swp1 master br0
56 ip link add name br0.100 link br0 type vlan \
60 ip link add name br0.100 link br0 type vlan \
[all …]
H A Dextack.sh22 ip link set dev $swp1 up
23 ip link set dev $swp2 up
30 ip link set dev $swp2 down
31 ip link set dev $swp1 down
38 ip link add name br1 type bridge vlan_filtering 0 mcast_snooping 0
39 ip link set dev br1 addrgenmode none
40 ip link set dev br1 up
41 ip link add name vx1 up type vxlan id 1000 \
45 ip link set dev vx1 master br1
48 ip link set dev $swp1 master br1
[all …]
/linux/tools/testing/selftests/net/
H A Dvlan_hw_filter.sh17 ip netns add ${NETNS}
21 ip netns del $NETNS 2>/dev/null
41 ip netns exec ${NETNS} ip link add bond0 type bond mode 0
42 ip netns exec ${NETNS} ip link add bond_slave_1 type veth peer veth2
43 ip netns exec ${NETNS} ip link set bond_slave_1 master bond0
44 ip netns exec ${NETNS} ethtool -K bond0 rx-vlan-filter off
45 ip netns exec ${NETNS} ip link add link bond_slave_1 name bond_slave_1.0 type vlan id 0
46 ip netns exec ${NETNS} ip link add link bond0 name bond0.0 type vlan id 0
47 ip netns exec ${NETNS} ip link set bond_slave_1 nomaster
48 ip netns exec ${NETNS} ip link del veth2 || fail "Please check vlan HW filter function"
[all …]
H A Drtnetlink.sh150 run_cmd ip link add name "$devdummy" type dummy
151 run_cmd ip link set "$devdummy" up
156 run_cmd ip link del dev "$devdummy"
163 run_cmd ip netconf show dev "$dev"
165 run_cmd ip -$f netconf show dev "$dev"
169 end_test "FAIL: ip netconf show $dev"
182 run_cmd ip link add name "$devbr" type bridge
183 run_cmd ip link set dev "$devdummy" master "$devbr"
184 run_cmd ip link set "$devbr" up
185 run_cmd ip link add link "$devbr" name "$vlandev" type vlan id 1
[all …]
H A Dfib_nexthops.sh138 addr=$(ip $ns -6 -br addr show dev ${dev} | \
161 ip netns exec ${n} sysctl -qw net.ipv4.ip_forward=1
162 ip netns exec ${n} sysctl -qw net.ipv4.fib_multipath_use_neigh=1
163 ip netns exec ${n} sysctl -qw net.ipv4.conf.default.ignore_routes_with_linkdown=1
164 ip netns exec ${n} sysctl -qw net.ipv6.conf.all.keep_addr_on_down=1
165 ip netns exec ${n} sysctl -qw net.ipv6.conf.all.forwarding=1
166 ip netns exec ${n} sysctl -qw net.ipv6.conf.default.forwarding=1
167 ip netns exec ${n} sysctl -qw net.ipv6.conf.default.ignore_routes_with_linkdown=1
168 ip netns exec ${n} sysctl -qw net.ipv6.conf.all.accept_dad=0
169 ip netns exec ${n} sysctl -qw net.ipv6.conf.default.accept_dad=0
[all …]
H A Dfib_tests.sh58 IP="$(which ip) -netns $ns1"
59 NS_EXEC="$(which ip) netns exec $ns1"
60 ip netns exec $ns1 sysctl -qw net.ipv4.ip_forward=1
61 ip netns exec $ns1 sysctl -qw net.ipv6.conf.all.forwarding=1
63 $IP link add dummy0 type dummy
64 $IP link set dev dummy0 up
65 $IP address add 198.51.100.1/24 dev dummy0
66 $IP -6 address add 2001:db8:1::1/64 dev dummy0
73 $IP lin
[all...]
/linux/tools/testing/selftests/net/forwarding/
H A Drouter_mpath_nh_res.sh54 ip link set dev $h1 master vrf-h1
56 ip link set dev vrf-h1 up
57 ip link set dev $h1 up
59 ip address add 192.0.2.2/24 dev $h1
60 ip address add 2001:db8:1::2/64 dev $h1
62 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
63 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
68 ip route del 2001:db8:2::/64 vrf vrf-h1
69 ip route del 198.51.100.0/24 vrf vrf-h1
71 ip address del 2001:db8:1::2/64 dev $h1
[all …]
H A Drouter_mpath_nh.sh56 ip link set dev $h1 master vrf-h1
58 ip link set dev vrf-h1 up
59 ip link set dev $h1 up
61 ip address add 192.0.2.2/24 dev $h1
62 ip address add 2001:db8:1::2/64 dev $h1
64 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
65 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
70 ip route del 2001:db8:2::/64 vrf vrf-h1
71 ip route del 198.51.100.0/24 vrf vrf-h1
73 ip address del 2001:db8:1::2/64 dev $h1
[all …]
H A Drouter_multipath.sh11 ip link set dev $h1 master vrf-h1
13 ip link set dev vrf-h1 up
14 ip link set dev $h1 up
16 ip address add 192.0.2.2/24 dev $h1
17 ip address add 2001:db8:1::2/64 dev $h1
19 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
20 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
25 ip route del 2001:db8:2::/64 vrf vrf-h1
26 ip route del 198.51.100.0/24 vrf vrf-h1
28 ip address del 2001:db8:1::2/64 dev $h1
[all …]
/linux/tools/testing/selftests/drivers/net/netdevsim/
H A Dnexthop.sh61 out=$($IP nexthop show ${nharg} | sed -e 's/ *$//')
81 count=$($IP nexthop bucket show id $group_id nhid $nhid |
117 $IP nexthop add id 1 via 192.0.2.2 dev dummy1
124 $IP nexthop del id 1
137 $IP nexthop add id 1 via 192.0.2.2 dev dummy1
139 $IP nexthop add id 2 via 192.0.2.3 dev dummy1 &> /dev/null
147 $IP nexthop flush &> /dev/null
155 $IP nexthop add id 1 via 192.0.2.2 dev dummy1
156 $IP nexthop add id 2 via 192.0.2.3 dev dummy1
158 $IP nexthop add id 10 group 1/2
[all …]
/linux/drivers/net/ethernet/sgi/
H A Dioc3-eth.c36 #include <linux/ip.h>
48 #include <net/ip.h>
109 static void ioc3_start(struct ioc3_private *ip);
110 static inline void ioc3_stop(struct ioc3_private *ip);
113 static void ioc3_free_rx_bufs(struct ioc3_private *ip);
114 static inline void ioc3_clean_tx_ring(struct ioc3_private *ip);
123 static inline int ioc3_alloc_skb(struct ioc3_private *ip, struct sk_buff **skb, in ioc3_alloc_skb() argument
139 d = dma_map_single(ip->dma_dev, new_skb->data, in ioc3_alloc_skb()
142 if (dma_mapping_error(ip->dma_dev, d)) { in ioc3_alloc_skb()
229 struct ioc3_private *ip = netdev_priv(dev); in __ioc3_set_mac_address() local
[all …]
/linux/tools/testing/selftests/net/netfilter/
H A Dipvs.sh61 ip link add veth01 netns "${ns0}" type veth peer name veth10 netns "${ns1}"
62 ip link add veth02 netns "${ns0}" type veth peer name veth20 netns "${ns2}"
63 ip link add veth12 netns "${ns1}" type veth peer name veth21 netns "${ns2}"
65 ip netns exec "${ns0}" ip link set veth01 up
66 ip netns exec "${ns0}" ip link set veth02 up
67 ip netns exec "${ns0}" ip link add br0 type bridge
68 ip netns exec "${ns0}" ip link set veth01 master br0
69 ip netns exec "${ns0}" ip link set veth02 master br0
70 ip netns exec "${ns0}" ip link set br0 up
71 ip netns exec "${ns0}" ip addr add "${cip_v4}/24" dev br0
[all …]
/linux/tools/testing/selftests/drivers/net/bonding/
H A Dlag_lib.sh17 ip link add dummy1 type dummy
18 ip link add dummy2 type dummy
21 ip link add "$name" up type bond mode "$mode"
22 ip link set dev dummy1 master "$name"
23 ip link set dev dummy2 master "$name"
26 ip link add "$name" type team
27 ip link set dev dummy1 master "$name"
28 ip link set dev dummy2 master "$name"
29 ip link set dev "$name" up
37 ip lin
[all...]
/linux/fs/xfs/
H A Dxfs_icache.c91 struct xfs_inode *ip; in xfs_inode_alloc() local
97 ip = alloc_inode_sb(mp->m_super, xfs_inode_cache, GFP_KERNEL | __GFP_NOFAIL); in xfs_inode_alloc()
99 if (inode_init_always(mp->m_super, VFS_I(ip))) { in xfs_inode_alloc()
100 kmem_cache_free(xfs_inode_cache, ip); in xfs_inode_alloc()
104 VFS_I(ip)->i_ino = ino; in xfs_inode_alloc()
106 VFS_I(ip)->i_mode = 0; in xfs_inode_alloc()
107 mapping_set_folio_min_order(VFS_I(ip)->i_mapping, in xfs_inode_alloc()
111 ASSERT(atomic_read(&ip->i_pincount) == 0); in xfs_inode_alloc()
114 ip->i_mount = mp; in xfs_inode_alloc()
115 memset(&ip in xfs_inode_alloc()
142 struct xfs_inode *ip = XFS_I(inode); xfs_inode_free_callback() local
169 __xfs_inode_free(struct xfs_inode * ip) __xfs_inode_free() argument
184 xfs_inode_free(struct xfs_inode * ip) xfs_inode_free() argument
363 xfs_iget_recycle(struct xfs_perag * pag,struct xfs_inode * ip) xfs_iget_recycle() argument
421 xfs_iget_check_free_state(struct xfs_inode * ip,int flags) xfs_iget_check_free_state() argument
502 xfs_iget_cache_hit(struct xfs_perag * pag,struct xfs_inode * ip,xfs_ino_t ino,int flags,int lock_flags) xfs_iget_cache_hit() argument
633 struct xfs_inode *ip; xfs_iget_cache_miss() local
774 struct xfs_inode *ip; xfs_iget() local
850 struct xfs_inode *ip; xfs_trans_metafile_iget() local
923 xfs_reclaim_igrab(struct xfs_inode * ip,struct xfs_icwalk * icw) xfs_reclaim_igrab() argument
962 xfs_reclaim_inode(struct xfs_inode * ip,struct xfs_perag * pag) xfs_reclaim_inode() argument
1138 xfs_icwalk_match_id(struct xfs_inode * ip,struct xfs_icwalk * icw) xfs_icwalk_match_id() argument
1162 xfs_icwalk_match_id_union(struct xfs_inode * ip,struct xfs_icwalk * icw) xfs_icwalk_match_id_union() argument
1187 xfs_icwalk_match(struct xfs_inode * ip,struct xfs_icwalk * icw) xfs_icwalk_match() argument
1229 xfs_inode_free_eofblocks(struct xfs_inode * ip,struct xfs_icwalk * icw,unsigned int * lockflags) xfs_inode_free_eofblocks() argument
1272 xfs_blockgc_set_iflag(struct xfs_inode * ip,unsigned long iflag) xfs_blockgc_set_iflag() argument
1302 xfs_inode_set_eofblocks_tag(xfs_inode_t * ip) xfs_inode_set_eofblocks_tag() argument
1310 xfs_blockgc_clear_iflag(struct xfs_inode * ip,unsigned long iflag) xfs_blockgc_clear_iflag() argument
1339 xfs_inode_clear_eofblocks_tag(xfs_inode_t * ip) xfs_inode_clear_eofblocks_tag() argument
1350 xfs_prep_free_cowblocks(struct xfs_inode * ip,struct xfs_icwalk * icw) xfs_prep_free_cowblocks() argument
1400 xfs_inode_free_cowblocks(struct xfs_inode * ip,struct xfs_icwalk * icw,unsigned int * lockflags) xfs_inode_free_cowblocks() argument
1448 xfs_inode_set_cowblocks_tag(xfs_inode_t * ip) xfs_inode_set_cowblocks_tag() argument
1456 xfs_inode_clear_cowblocks_tag(xfs_inode_t * ip) xfs_inode_clear_cowblocks_tag() argument
1505 xfs_blockgc_igrab(struct xfs_inode * ip) xfs_blockgc_igrab() argument
1539 xfs_blockgc_scan_inode(struct xfs_inode * ip,struct xfs_icwalk * icw) xfs_blockgc_scan_inode() argument
1678 xfs_blockgc_free_quota(struct xfs_inode * ip,unsigned int iwalk_flags) xfs_blockgc_free_quota() argument
1705 xfs_icwalk_igrab(enum xfs_icwalk_goal goal,struct xfs_inode * ip,struct xfs_icwalk * icw) xfs_icwalk_igrab() argument
1725 xfs_icwalk_process_inode(enum xfs_icwalk_goal goal,struct xfs_inode * ip,struct xfs_perag * pag,struct xfs_icwalk * icw) xfs_icwalk_process_inode() argument
1788 struct xfs_inode *ip = batch[i]; xfs_icwalk_ag() local
1882 xfs_check_delalloc(struct xfs_inode * ip,int whichfork) xfs_check_delalloc() argument
1902 xfs_check_delalloc(ip,whichfork) global() argument
1908 xfs_inodegc_set_reclaimable(struct xfs_inode * ip) xfs_inodegc_set_reclaimable() argument
1941 xfs_inodegc_inactivate(struct xfs_inode * ip) xfs_inodegc_inactivate() argument
1959 struct xfs_inode *ip, *n; xfs_inodegc_worker() local
2079 xfs_inodegc_want_queue_rt_file(struct xfs_inode * ip) xfs_inodegc_want_queue_rt_file() argument
2094 xfs_inodegc_want_queue_rt_file(ip) global() argument
2106 xfs_inodegc_want_queue_work(struct xfs_inode * ip,unsigned int items) xfs_inodegc_want_queue_work() argument
2153 xfs_inodegc_want_flush_work(struct xfs_inode * ip,unsigned int items,unsigned int shrinker_hits) xfs_inodegc_want_flush_work() argument
2176 xfs_inodegc_queue(struct xfs_inode * ip) xfs_inodegc_queue() argument
2241 xfs_inode_mark_reclaimable(struct xfs_inode * ip) xfs_inode_mark_reclaimable() argument
[all...]
H A Dxfs_inode.h103 static inline bool xfs_inode_on_unlinked_list(const struct xfs_inode *ip)
105 return ip->i_prev_unlinked != 0; in xfs_inode_on_unlinked_list()
108 static inline bool xfs_inode_has_attr_fork(const struct xfs_inode *ip)
110 return ip->i_forkoff > 0; in xfs_inode_has_attr_fork()
115 struct xfs_inode *ip, in xfs_ifork_ptr()
120 return &ip->i_df; in xfs_ifork_ptr()
122 if (!xfs_inode_has_attr_fork(ip)) in xfs_ifork_ptr()
124 return &ip->i_af; in xfs_ifork_ptr()
126 return ip->i_cowfp; in xfs_ifork_ptr()
133 static inline unsigned int xfs_inode_fork_boff(struct xfs_inode *ip)
104 xfs_inode_on_unlinked_list(const struct xfs_inode * ip) xfs_inode_on_unlinked_list() argument
109 xfs_inode_has_attr_fork(const struct xfs_inode * ip) xfs_inode_has_attr_fork() argument
116 xfs_ifork_ptr(struct xfs_inode * ip,int whichfork) xfs_ifork_ptr() argument
134 xfs_inode_fork_boff(struct xfs_inode * ip) xfs_inode_fork_boff() argument
139 xfs_inode_data_fork_size(struct xfs_inode * ip) xfs_inode_data_fork_size() argument
147 xfs_inode_attr_fork_size(struct xfs_inode * ip) xfs_inode_attr_fork_size() argument
156 xfs_inode_fork_size(struct xfs_inode * ip,int whichfork) xfs_inode_fork_size() argument
176 VFS_I(struct xfs_inode * ip) VFS_I() argument
182 VFS_IC(const struct xfs_inode * ip) VFS_IC() argument
192 XFS_ISIZE(struct xfs_inode * ip) XFS_ISIZE() argument
204 xfs_new_eof(struct xfs_inode * ip,xfs_fsize_t new_size) xfs_new_eof() argument
217 __xfs_iflags_set(xfs_inode_t * ip,unsigned long flags) __xfs_iflags_set() argument
223 xfs_iflags_set(xfs_inode_t * ip,unsigned long flags) xfs_iflags_set() argument
231 xfs_iflags_clear(xfs_inode_t * ip,unsigned long flags) xfs_iflags_clear() argument
239 __xfs_iflags_test(const struct xfs_inode * ip,unsigned long flags) __xfs_iflags_test() argument
245 xfs_iflags_test(xfs_inode_t * ip,unsigned long flags) xfs_iflags_test() argument
255 xfs_iflags_test_and_clear(xfs_inode_t * ip,unsigned long flags) xfs_iflags_test_and_clear() argument
268 xfs_iflags_test_and_set(xfs_inode_t * ip,unsigned long flags) xfs_iflags_test_and_set() argument
280 xfs_is_reflink_inode(const struct xfs_inode * ip) xfs_is_reflink_inode() argument
285 xfs_is_metadir_inode(const struct xfs_inode * ip) xfs_is_metadir_inode() argument
290 xfs_is_internal_inode(const struct xfs_inode * ip) xfs_is_internal_inode() argument
307 xfs_is_zoned_inode(const struct xfs_inode * ip) xfs_is_zoned_inode() argument
314 xfs_is_cow_inode(const struct xfs_inode * ip) xfs_is_cow_inode() argument
319 xfs_inode_has_filedata(const struct xfs_inode * ip) xfs_inode_has_filedata() argument
328 xfs_inode_has_cow_data(const struct xfs_inode * ip) xfs_inode_has_cow_data() argument
333 xfs_inode_has_bigtime(const struct xfs_inode * ip) xfs_inode_has_bigtime() argument
338 xfs_inode_has_large_extent_counts(const struct xfs_inode * ip) xfs_inode_has_large_extent_counts() argument
347 xfs_inode_has_bigrtalloc(const struct xfs_inode * ip) xfs_inode_has_bigrtalloc() argument
355 xfs_inode_buftarg(ip) global() argument
359 xfs_inode_can_hw_atomic_write(const struct xfs_inode * ip) xfs_inode_can_hw_atomic_write() argument
367 xfs_inode_can_sw_atomic_write(const struct xfs_inode * ip) xfs_inode_can_sw_atomic_write() argument
588 xfs_ipincount(ip) global() argument
600 xfs_itruncate_extents(struct xfs_trans ** tpp,struct xfs_inode * ip,int whichfork,xfs_fsize_t new_size) xfs_itruncate_extents() argument
611 xfs_update_stable_writes(struct xfs_inode * ip) xfs_update_stable_writes() argument
626 xfs_finish_inode_setup(struct xfs_inode * ip) xfs_finish_inode_setup() argument
633 xfs_setup_existing_inode(struct xfs_inode * ip) xfs_setup_existing_inode() argument
663 xfs_inode_unlinked_incomplete(const struct xfs_inode * ip) xfs_inode_unlinked_incomplete() argument
[all...]
/linux/lib/zstd/compress/
H A Dzstd_double_fast.c29 const BYTE* ip = base + ms->nextToUpdate; in ZSTD_fillDoubleHashTableForCDict() local
37 for (; ip + fastHashFillStep - 1 <= iend; ip += fastHashFillStep) { in ZSTD_fillDoubleHashTableForCDict()
38 U32 const curr = (U32)(ip - base); in ZSTD_fillDoubleHashTableForCDict()
41 size_t const smHashAndTag = ZSTD_hashPtr(ip + i, hBitsS, mls); in ZSTD_fillDoubleHashTableForCDict()
42 size_t const lgHashAndTag = ZSTD_hashPtr(ip + i, hBitsL, 8); in ZSTD_fillDoubleHashTableForCDict()
67 const BYTE* ip = base + ms->nextToUpdate; in ZSTD_fillDoubleHashTableForCCtx() local
75 for (; ip + fastHashFillStep - 1 <= iend; ip += fastHashFillStep) { in ZSTD_fillDoubleHashTableForCCtx()
76 U32 const curr = (U32)(ip - base); in ZSTD_fillDoubleHashTableForCCtx()
79 size_t const smHash = ZSTD_hashPtr(ip + i, hBitsS, mls); in ZSTD_fillDoubleHashTableForCCtx()
80 size_t const lgHash = ZSTD_hashPtr(ip + i, hBitsL, 8); in ZSTD_fillDoubleHashTableForCCtx()
[all …]
/linux/samples/bpf/
H A Dtc_l2_redirect.sh5 [[ -z $IP ]] && IP='ip'
17 $IP netns add ns1
18 $IP netns add ns2
19 $IP link add ve1 type veth peer name vens1
20 $IP link add ve2 type veth peer name vens2
21 $IP link set dev ve1 up
22 $IP link set dev ve2 up
23 $IP link set dev ve1 mtu 1500
24 $IP link set dev ve2 mtu 1500
25 $IP link set dev vens1 netns ns1
[all …]

12345678910>>...105