/linux/tools/testing/selftests/wireguard/ |
H A D | netns.sh | 41 ip1() { pretty 1 "ip $*"; ip -n $netns1 "$@"; } function 54 ip1 link del dev wg0 55 ip1 link del dev wg1 94 ip1 addr add 192.168.241.1/24 dev wg0 95 ip1 addr add fd00::1/112 dev wg0 113 ip1 link set up dev wg0 159 [[ $(ip1 link show dev wg0) =~ mtu\ ([0-9]+) ]] && orig_mtu="${BASH_REMATCH[1]}" 169 { read _; read _; read _; read rx_bytes _; read _; read tx_bytes _; } < <(ip1 -stats link show dev … 179 ip1 link set wg0 mtu $big_mtu 183 ip1 link set wg0 mtu $orig_mtu [all …]
|
/linux/tools/testing/selftests/net/forwarding/ |
H A D | mirror_lib.sh | 65 local ip1=$1; shift 71 mirror_test v$h1 $ip1 $ip2 $dev 100 $expect 75 mirror_test v$h2 $ip2 $ip1 $dev 100 $expect 82 local ip1=$1; shift 87 do_test_span_dir_ips 10 "$dev" "$ip1" "$ip2" \ 96 local ip1=$1; shift 99 quick_test_span_dir_ips "$dev" "$ip1" "$ip2" \ 103 mirror_test v$h1 $ip1 $ip2 $dev 100 10 107 mirror_test v$h2 $ip2 $ip1 $dev 100 10 127 local ip1=$1; shift [all …]
|
H A D | mirror_gre_lib.sh | 8 local ip1=$1; shift 13 do_test_span_dir_ips 10 h3-$tundev "$ip1" "$ip2" \ 20 local ip1=$1; shift 23 do_test_span_dir_ips 0 h3-$tundev "$ip1" "$ip2" 31 local ip1=$1; shift 35 "$backward_type" "$ip1" "$ip2" 45 local ip1=$1; shift 52 "$backward_type" "$ip1" "$ip2" 66 local ip1=$1; shift 74 "$backward_type" "$ip1" "$ip2" [all …]
|
H A D | vxlan_asymmetric_ipv6.sh | 400 local ip1=$1; shift 409 ip neigh add $ip1 lladdr $mac1 nud noarp dev vlan10 \
|
H A D | vxlan_asymmetric.sh | 405 local ip1=$1; shift 414 ip neigh add $ip1 lladdr $mac1 nud noarp dev vlan10 \
|
H A D | vxlan_symmetric_ipv6.sh | 445 local ip1=$1; shift 454 ip neigh add $ip1 lladdr $mac1 nud noarp dev vlan10 \
|
/linux/fs/xfs/ |
H A D | xfs_exchrange.c | 31 struct xfs_inode *ip1, in xfs_exchrange_ilock() argument 34 if (ip1 != ip2) in xfs_exchrange_ilock() 35 xfs_lock_two_inodes(ip1, XFS_ILOCK_EXCL, in xfs_exchrange_ilock() 38 xfs_ilock(ip1, XFS_ILOCK_EXCL); in xfs_exchrange_ilock() 40 xfs_trans_ijoin(tp, ip1, 0); in xfs_exchrange_ilock() 41 if (ip2 != ip1) in xfs_exchrange_ilock() 50 struct xfs_inode *ip1, in xfs_exchrange_iunlock() argument 53 if (ip2 != ip1) in xfs_exchrange_iunlock() 55 xfs_iunlock(ip1, XFS_ILOCK_EXCL); in xfs_exchrange_iunlock() 69 xfs_exchrange_ilock(NULL, req->ip1, req->ip2); in xfs_exchrange_estimate() [all …]
|
H A D | xfs_inode.c | 486 struct xfs_inode *ip1, in xfs_lock_two_inodes() argument 498 ASSERT(ip0->i_ino != ip1->i_ino); in xfs_lock_two_inodes() 500 if (ip0->i_ino > ip1->i_ino) { in xfs_lock_two_inodes() 501 swap(ip0, ip1); in xfs_lock_two_inodes() 515 if (!xfs_ilock_nowait(ip1, xfs_lock_inumorder(ip1_mode, 1))) { in xfs_lock_two_inodes() 522 xfs_ilock(ip1, xfs_lock_inumorder(ip1_mode, 1)); in xfs_lock_two_inodes() 1986 struct xfs_inode *ip1, /* in: inode of old entry */ in xfs_sort_for_rename() argument 2007 i_tab[i++] = ip1; in xfs_sort_for_rename() 2703 struct xfs_inode *ip1, in xfs_mmaplock_two_inodes_and_break_dax_layout() argument 2710 if (ip1->i_ino > ip2->i_ino) in xfs_mmaplock_two_inodes_and_break_dax_layout() [all …]
|
H A D | xfs_exchrange.h | 46 void xfs_exchrange_ilock(struct xfs_trans *tp, struct xfs_inode *ip1, 48 void xfs_exchrange_iunlock(struct xfs_inode *ip1, struct xfs_inode *ip2);
|
H A D | xfs_inode.h | 557 struct xfs_inode *ip1, uint ip1_mode); 620 int xfs_ilock2_io_mmap(struct xfs_inode *ip1, struct xfs_inode *ip2); 621 void xfs_iunlock2_io_mmap(struct xfs_inode *ip1, struct xfs_inode *ip2); 622 void xfs_iunlock2_remapping(struct xfs_inode *ip1, struct xfs_inode *ip2);
|
/linux/net/netfilter/ipset/ |
H A D | ip_set_hash_netiface.c | 69 hash_netiface4_data_equal(const struct hash_netiface4_elem *ip1, in hash_netiface4_data_equal() argument 73 return ip1->ip == ip2->ip && in hash_netiface4_data_equal() 74 ip1->cidr == ip2->cidr && in hash_netiface4_data_equal() 76 ip1->physdev == ip2->physdev && in hash_netiface4_data_equal() 77 (ip1->wildcard ? in hash_netiface4_data_equal() 78 strncmp(ip1->iface, ip2->iface, strlen(ip1->iface)) == 0 : in hash_netiface4_data_equal() 79 strcmp(ip1->iface, ip2->iface) == 0); in hash_netiface4_data_equal() 303 hash_netiface6_data_equal(const struct hash_netiface6_elem *ip1, in hash_netiface6_data_equal() argument 307 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_netiface6_data_equal() 308 ip1->cidr == ip2->cidr && in hash_netiface6_data_equal() [all …]
|
H A D | ip_set_hash_ipportip.c | 51 hash_ipportip4_data_equal(const struct hash_ipportip4_elem *ip1, in hash_ipportip4_data_equal() argument 55 return ip1->ip == ip2->ip && in hash_ipportip4_data_equal() 56 ip1->ip2 == ip2->ip2 && in hash_ipportip4_data_equal() 57 ip1->port == ip2->port && in hash_ipportip4_data_equal() 58 ip1->proto == ip2->proto; in hash_ipportip4_data_equal() 219 hash_ipportip6_data_equal(const struct hash_ipportip6_elem *ip1, in hash_ipportip6_data_equal() argument 223 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_ipportip6_data_equal() 224 ipv6_addr_equal(&ip1->ip2.in6, &ip2->ip2.in6) && in hash_ipportip6_data_equal() 225 ip1->port == ip2->port && in hash_ipportip6_data_equal() 226 ip1->proto == ip2->proto; in hash_ipportip6_data_equal()
|
H A D | ip_set_hash_ipportnet.c | 64 hash_ipportnet4_data_equal(const struct hash_ipportnet4_elem *ip1, in hash_ipportnet4_data_equal() argument 68 return ip1->ip == ip2->ip && in hash_ipportnet4_data_equal() 69 ip1->ip2 == ip2->ip2 && in hash_ipportnet4_data_equal() 70 ip1->cidr == ip2->cidr && in hash_ipportnet4_data_equal() 71 ip1->port == ip2->port && in hash_ipportnet4_data_equal() 72 ip1->proto == ip2->proto; in hash_ipportnet4_data_equal() 319 hash_ipportnet6_data_equal(const struct hash_ipportnet6_elem *ip1, in hash_ipportnet6_data_equal() argument 323 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_ipportnet6_data_equal() 324 ipv6_addr_equal(&ip1->ip2.in6, &ip2->ip2.in6) && in hash_ipportnet6_data_equal() 325 ip1->cidr == ip2->cidr && in hash_ipportnet6_data_equal() [all …]
|
H A D | ip_set_hash_netport.c | 62 hash_netport4_data_equal(const struct hash_netport4_elem *ip1, in hash_netport4_data_equal() argument 66 return ip1->ip == ip2->ip && in hash_netport4_data_equal() 67 ip1->port == ip2->port && in hash_netport4_data_equal() 68 ip1->proto == ip2->proto && in hash_netport4_data_equal() 69 ip1->cidr == ip2->cidr; in hash_netport4_data_equal() 279 hash_netport6_data_equal(const struct hash_netport6_elem *ip1, in hash_netport6_data_equal() argument 283 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_netport6_data_equal() 284 ip1->port == ip2->port && in hash_netport6_data_equal() 285 ip1->proto == ip2->proto && in hash_netport6_data_equal() 286 ip1->cidr == ip2->cidr; in hash_netport6_data_equal()
|
H A D | ip_set_hash_netportnet.c | 62 hash_netportnet4_data_equal(const struct hash_netportnet4_elem *ip1, in hash_netportnet4_data_equal() argument 66 return ip1->ipcmp == ip2->ipcmp && in hash_netportnet4_data_equal() 67 ip1->ccmp == ip2->ccmp && in hash_netportnet4_data_equal() 68 ip1->port == ip2->port && in hash_netportnet4_data_equal() 69 ip1->proto == ip2->proto; in hash_netportnet4_data_equal() 353 hash_netportnet6_data_equal(const struct hash_netportnet6_elem *ip1, in hash_netportnet6_data_equal() argument 357 return ipv6_addr_equal(&ip1->ip[0].in6, &ip2->ip[0].in6) && in hash_netportnet6_data_equal() 358 ipv6_addr_equal(&ip1->ip[1].in6, &ip2->ip[1].in6) && in hash_netportnet6_data_equal() 359 ip1->ccmp == ip2->ccmp && in hash_netportnet6_data_equal() 360 ip1->port == ip2->port && in hash_netportnet6_data_equal() [all …]
|
H A D | ip_set_hash_ipport.c | 55 hash_ipport4_data_equal(const struct hash_ipport4_elem *ip1, in hash_ipport4_data_equal() argument 59 return ip1->ip == ip2->ip && in hash_ipport4_data_equal() 60 ip1->port == ip2->port && in hash_ipport4_data_equal() 61 ip1->proto == ip2->proto; in hash_ipport4_data_equal() 222 hash_ipport6_data_equal(const struct hash_ipport6_elem *ip1, in hash_ipport6_data_equal() argument 226 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_ipport6_data_equal() 227 ip1->port == ip2->port && in hash_ipport6_data_equal() 228 ip1->proto == ip2->proto; in hash_ipport6_data_equal()
|
H A D | ip_set_hash_ipmark.c | 47 hash_ipmark4_data_equal(const struct hash_ipmark4_elem *ip1, in hash_ipmark4_data_equal() argument 51 return ip1->ip == ip2->ip && in hash_ipmark4_data_equal() 52 ip1->mark == ip2->mark; in hash_ipmark4_data_equal() 179 hash_ipmark6_data_equal(const struct hash_ipmark6_elem *ip1, in hash_ipmark6_data_equal() argument 183 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_ipmark6_data_equal() 184 ip1->mark == ip2->mark; in hash_ipmark6_data_equal()
|
H A D | ip_set_hash_net.c | 52 hash_net4_data_equal(const struct hash_net4_elem *ip1, in hash_net4_data_equal() argument 56 return ip1->ip == ip2->ip && in hash_net4_data_equal() 57 ip1->cidr == ip2->cidr; in hash_net4_data_equal() 223 hash_net6_data_equal(const struct hash_net6_elem *ip1, in hash_net6_data_equal() argument 227 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_net6_data_equal() 228 ip1->cidr == ip2->cidr; in hash_net6_data_equal()
|
H A D | ip_set_hash_netnet.c | 60 hash_netnet4_data_equal(const struct hash_netnet4_elem *ip1, in hash_netnet4_data_equal() argument 64 return ip1->ipcmp == ip2->ipcmp && in hash_netnet4_data_equal() 65 ip1->ccmp == ip2->ccmp; in hash_netnet4_data_equal() 295 hash_netnet6_data_equal(const struct hash_netnet6_elem *ip1, in hash_netnet6_data_equal() argument 299 return ipv6_addr_equal(&ip1->ip[0].in6, &ip2->ip[0].in6) && in hash_netnet6_data_equal() 300 ipv6_addr_equal(&ip1->ip[1].in6, &ip2->ip[1].in6) && in hash_netnet6_data_equal() 301 ip1->ccmp == ip2->ccmp; in hash_netnet6_data_equal()
|
H A D | ip_set_hash_ip.c | 183 hash_ip6_data_equal(const struct hash_ip6_elem *ip1, in hash_ip6_data_equal() argument 187 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6); in hash_ip6_data_equal()
|
/linux/lib/zstd/compress/ |
H A D | zstd_fast.c | 113 const BYTE* ip1; in ZSTD_compressBlock_fast_noDict_generic() local 155 ip1 = ip0 + 1; in ZSTD_compressBlock_fast_noDict_generic() 164 hash1 = ZSTD_hashPtr(ip1, hlog, mls); in ZSTD_compressBlock_fast_noDict_generic() 209 ip0 = ip1; in ZSTD_compressBlock_fast_noDict_generic() 210 ip1 = ip2; in ZSTD_compressBlock_fast_noDict_generic() 238 ip0 = ip1; in ZSTD_compressBlock_fast_noDict_generic() 239 ip1 = ip2; in ZSTD_compressBlock_fast_noDict_generic() 241 ip3 = ip1 + step; in ZSTD_compressBlock_fast_noDict_generic() 246 PREFETCH_L1(ip1 + 64); in ZSTD_compressBlock_fast_noDict_generic() 247 PREFETCH_L1(ip1 + 128); in ZSTD_compressBlock_fast_noDict_generic() [all …]
|
H A D | zstd_double_fast.c | 93 const BYTE* ip1; /* the next position */ in ZSTD_compressBlock_doubleFast_noDict_generic() local 111 ip1 = ip + step; in ZSTD_compressBlock_doubleFast_noDict_generic() 113 if (ip1 > ilimit) { in ZSTD_compressBlock_doubleFast_noDict_generic() 138 hl1 = ZSTD_hashPtr(ip1, hBitsL, 8); in ZSTD_compressBlock_doubleFast_noDict_generic() 160 if (ip1 >= nextStep) { in ZSTD_compressBlock_doubleFast_noDict_generic() 161 PREFETCH_L1(ip1 + 64); in ZSTD_compressBlock_doubleFast_noDict_generic() 162 PREFETCH_L1(ip1 + 128); in ZSTD_compressBlock_doubleFast_noDict_generic() 166 ip = ip1; in ZSTD_compressBlock_doubleFast_noDict_generic() 167 ip1 += step; in ZSTD_compressBlock_doubleFast_noDict_generic() 175 } while (ip1 <= ilimit); in ZSTD_compressBlock_doubleFast_noDict_generic() [all …]
|
/linux/fs/xfs/scrub/ |
H A D | tempfile.c | 520 req->ip1 = sc->tempip; in xrep_tempexch_prep_request() 641 if (!XFS_IS_QUOTA_ON(tp->t_mountp) || req->ip1 == req->ip2 || in xrep_tempexch_reserve_quota() 642 (req->ip1->i_udquot == req->ip2->i_udquot && in xrep_tempexch_reserve_quota() 643 req->ip1->i_gdquot == req->ip2->i_gdquot && in xrep_tempexch_reserve_quota() 644 req->ip1->i_pdquot == req->ip2->i_pdquot)) in xrep_tempexch_reserve_quota() 658 error = xfs_trans_reserve_quota_nblks(tp, req->ip1, in xrep_tempexch_reserve_quota()
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_dir2.c | 1054 struct xfs_inode *ip1 = du1->ip; in xfs_dir_exchange_children() local 1069 error = xfs_dir_replace(tp, dp2, name2, ip1->i_ino, spaceres); in xfs_dir_exchange_children() 1088 if (!S_ISDIR(VFS_I(ip1)->i_mode)) { in xfs_dir_exchange_children() 1105 if (S_ISDIR(VFS_I(ip1)->i_mode)) { in xfs_dir_exchange_children() 1106 error = xfs_dir_replace(tp, ip1, &xfs_name_dotdot, in xfs_dir_exchange_children() 1131 xfs_trans_ichgtime(tp, ip1, ip1_flags); in xfs_dir_exchange_children() 1132 xfs_trans_log_inode(tp, ip1, XFS_ILOG_CORE); in xfs_dir_exchange_children() 1148 dp2, name2, ip1); in xfs_dir_exchange_children() 1168 xfs_dir_update_hook(dp1, ip1, -1, name1); in xfs_dir_exchange_children() 1171 xfs_dir_update_hook(dp2, ip1, 1, name2); in xfs_dir_exchange_children()
|
/linux/drivers/net/wireguard/selftest/ |
H A D | allowedips.c | 26 u8 ip1[16], ip2[16], cidr1, cidr2; in print_node() local 48 wg_allowedips_read_node(node, ip1, &cidr1); in print_node() 49 printk(fmt_declaration, ip1, cidr1, style, color); in print_node() 52 printk(fmt_connection, ip1, cidr1, ip2, cidr2); in print_node() 56 printk(fmt_connection, ip1, cidr1, ip2, cidr2); in print_node()
|