/spdk/test/iscsi_tgt/ |
H A D | common.sh | 13 TARGET_NS_CMD=(ip netns exec "$TARGET_NAMESPACE") 32 ip link set $INITIATOR_BRIDGE nomaster || true 33 ip link set $TARGET_BRIDGE nomaster || true 34 ip link set $TARGET_BRIDGE2 nomaster || true 35 ip link set $INITIATOR_BRIDGE down || true 36 ip link set $TARGET_BRIDGE down || true 37 ip link set $TARGET_BRIDGE2 down || true 38 ip link delete $ISCSI_BRIDGE type bridge || true 39 ip link delete $INITIATOR_INTERFACE || true 40 "${TARGET_NS_CMD[@]}" ip link delete $TARGET_INTERFACE || true [all …]
|
/spdk/test/nvmf/ |
H A D | common.sh | 78 ip="$(get_ip_address $nic_name)" 79 if [[ -z $ip ]]; then 80 ip addr add $NVMF_IP_PREFIX.$count/24 dev $nic_name 81 ip link set $nic_name up 85 ip addr show $nic_name 117 ip -o -4 addr show $interface | awk '{print $4}' | cut -d"/" -f1 156 NVMF_TARGET_NS_CMD=(ip netns exec "$NVMF_TARGET_NAMESPACE") 162 ip link set $NVMF_INITIATOR_BRIDGE nomaster || true 163 ip link set $NVMF_INITIATOR_BRIDGE2 nomaster || true 164 ip lin [all...] |
/spdk/lib/conf/ |
H A D | conf.c | 88 free_conf_item(struct spdk_conf_item *ip) in free_conf_item() argument 90 if (ip == NULL) { in free_conf_item() 94 if (ip->val != NULL) { in free_conf_item() 95 free_all_conf_value(ip->val); in free_conf_item() 98 if (ip->key != NULL) { in free_conf_item() 99 free(ip->key); in free_conf_item() 102 free(ip); in free_conf_item() 106 free_all_conf_item(struct spdk_conf_item *ip) in free_all_conf_item() argument 110 if (ip == NULL) { in free_all_conf_item() 114 while (ip != NULL) { in free_all_conf_item() [all …]
|
/spdk/test/nvmf/target/ |
H A D | device_removal.sh | 30 ip=$(get_ip_address "$dev_name") 39 $rpc_py nvmf_subsystem_add_listener $nqn -t $TEST_TRANSPORT -a $ip -s $NVMF_PORT 168 ip link set $new_net_dev down && ip link set $new_net_dev name $net_dev 179 ip link set $net_dev up 181 ip addr add $origin_ip/24 dev $net_dev 240 if ip link | grep $BOND_NAME; then 241 ip link del $BOND_NAME 244 ip link set $net_dev up 253 ip link add $BOND_NAME type bond mode 1 254 ip link set $nic1 down && sudo ip link set $nic1 master $BOND_NAME [all …]
|
H A D | perf_adq.sh | 36 ip parent ffff: prio 1 flower dst_ip $NVMF_FIRST_TARGET_IP/32 ip_proto tcp dst_port $NVMF_PORT skip_sw hw_tc 1
|
/spdk/scripts/ |
H A D | rxe_cfg_small.sh | 39 local ip 42 read -r _ _ _ ip _ < <(ip -o -4 addr show dev "$1") 43 if [[ -n $ip ]]; then 114 local name link driver speed mtu ip rxe rxe_dev active_mtu 117 speed="" mtu="" ip="" 146 ip=$(get_ipv4 "$name") 154 "$ip" \
|
H A D | rpc.py | 769 help='NVMe-oF target address: e.g., an ip address or BDF', required=True) 779 help='NVMe-oF host address: e.g., an ip address') 853 help='NVMe-oF target address: e.g., an ip address or BDF') 860 help='NVMe-oF host address: e.g., an ip address') 917 help='NVMe-oF target address: e.g., an ip address or BDF', required=True) 1745 ip, separator, port_cpumask = p.rpartition(':') 1749 portals.append({'host': ip, 'port': port}) 1753 portals.append({'host': ip, 'port': port}) 2726 p.add_argument('-a', '--traddr', help='NVMe-oF transport address: e.g., an ip address', required=True) 2747 p.add_argument('-a', '--traddr', help='NVMe-oF transport address: e.g., an ip addres [all...] |
/spdk/test/nvmf/host/ |
H A D | discovery_remove_ifc.sh | 75 "${NVMF_TARGET_NS_CMD[@]}" ip addr del $NVMF_FIRST_TARGET_IP/24 dev $NVMF_TARGET_INTERFACE 76 "${NVMF_TARGET_NS_CMD[@]}" ip link set $NVMF_TARGET_INTERFACE down 82 "${NVMF_TARGET_NS_CMD[@]}" ip addr add $NVMF_FIRST_TARGET_IP/24 dev $NVMF_TARGET_INTERFACE 83 "${NVMF_TARGET_NS_CMD[@]}" ip link set $NVMF_TARGET_INTERFACE up
|
/spdk/test/unit/lib/util/string.c/ |
H A D | string_ut.c | 19 char ip[255]; in test_parse_ip_addr() local 22 snprintf(ip, 255, "%s", "192.168.0.1"); in test_parse_ip_addr() 23 rc = spdk_parse_ip_addr(ip, &host, &port); in test_parse_ip_addr() 31 snprintf(ip, 255, "%s", "123.456.789.0:5520"); in test_parse_ip_addr() 32 rc = spdk_parse_ip_addr(ip, &host, &port); in test_parse_ip_addr() 42 snprintf(ip, 255, "%s", "[2001:db8:85a3:8d3:1319:8a2e:370:7348]"); in test_parse_ip_addr() 43 rc = spdk_parse_ip_addr(ip, &host, &port); in test_parse_ip_addr() 51 snprintf(ip, 255, "%s", "[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443"); in test_parse_ip_addr() 52 rc = spdk_parse_ip_addr(ip, &host, &port); in test_parse_ip_addr() 62 snprintf(ip, 255, "%s", "[2001:db8:85a3:8d3:1319:8a2e:370:7348]:"); in test_parse_ip_addr() [all …]
|
/spdk/lib/util/ |
H A D | string.c | 235 spdk_parse_ip_addr(char *ip, char **host, char **port) in spdk_parse_ip_addr() argument 239 if (ip == NULL) { in spdk_parse_ip_addr() 246 if (ip[0] == '[') { in spdk_parse_ip_addr() 248 p = strchr(ip, ']'); in spdk_parse_ip_addr() 252 *host = &ip[1]; in spdk_parse_ip_addr() 270 p = strchr(ip, ':'); in spdk_parse_ip_addr() 272 *host = ip; in spdk_parse_ip_addr() 276 *host = ip; in spdk_parse_ip_addr()
|
/spdk/test/common/lib/ |
H A D | test_sock.c | 13 DEFINE_STUB(spdk_sock_connect, struct spdk_sock *, (const char *ip, int port, 15 DEFINE_STUB(spdk_sock_listen, struct spdk_sock *, (const char *ip, int port, const char *impl_name), 17 DEFINE_STUB(spdk_sock_listen_ext, struct spdk_sock *, (const char *ip, int port,
|
/spdk/test/nvme/ |
H A D | hw_hotplug.sh |
|
/spdk/test/iscsi_tgt/ip_migration/ |
H A D | ip_migration.sh | 28 "${TARGET_NS_CMD[@]}" ip addr add $MIGRATION_ADDRESS/24 dev $TARGET_INTERFACE 31 "${TARGET_NS_CMD[@]}" ip addr del $MIGRATION_ADDRESS/24 dev $TARGET_INTERFACE
|
/spdk/test/unit/lib/sock/sock.c/ |
H A D | sock_ut.c | 56 spdk_ut_sock_listen(const char *ip, int port, struct spdk_sock_opts *opts) in spdk_ut_sock_listen() argument 60 if (strcmp(ip, UT_IP) || port != UT_PORT) { in spdk_ut_sock_listen() 74 spdk_ut_sock_connect(const char *ip, int port, struct spdk_sock_opts *opts) in spdk_ut_sock_connect() argument 78 if (strcmp(ip, UT_IP) || port != UT_PORT) { in spdk_ut_sock_connect() 340 _sock(const char *ip, int port, char *impl_name) in _sock() argument 352 listen_sock = spdk_sock_listen(ip, port, impl_name); in _sock() 359 client_sock = spdk_sock_connect(ip, port, impl_name); in _sock() 489 _sock_group(const char *ip, int port, char *impl_name) in _sock_group() argument 501 listen_sock = spdk_sock_listen(ip, port, impl_name); in _sock_group() 508 client_sock = spdk_sock_connect(ip, por in _sock_group() 752 _sock_close(const char * ip,int port,char * impl_name) _sock_close() argument [all...] |
/spdk/lib/sock/ |
H A D | sock.c | 340 spdk_sock_connect(const char *ip, int port, const char *impl_name) in spdk_sock_connect_ext() 346 return spdk_sock_connect_ext(ip, port, impl_name, &opts); in spdk_sock_connect_ext() 350 spdk_sock_connect_ext(const char *ip, int port, const char *_impl_name, struct spdk_sock_opts *opts) in spdk_sock_connect_ext() 375 sock = impl->connect(ip, port, &opts_local); in spdk_sock_listen() 394 spdk_sock_listen(const char *ip, int port, const char *impl_name) in spdk_sock_listen_ext() 400 return spdk_sock_listen_ext(ip, port, impl_name, &opts); in spdk_sock_listen_ext() 404 spdk_sock_listen_ext(const char *ip, int port, const char *_impl_name, struct spdk_sock_opts *opts) in spdk_sock_listen_ext() 429 sock = impl->listen(ip, port, &opts_local); in spdk_sock_accept() 320 spdk_sock_connect(const char * ip,int port,const char * impl_name) spdk_sock_connect() argument 330 spdk_sock_connect_ext(const char * ip,int port,const char * _impl_name,struct spdk_sock_opts * opts) spdk_sock_connect_ext() argument 374 spdk_sock_listen(const char * ip,int port,const char * impl_name) spdk_sock_listen() argument 384 spdk_sock_listen_ext(const char * ip,int port,const char * _impl_name,struct spdk_sock_opts * opts) spdk_sock_listen_ext() argument
|
/spdk/module/sock/posix/ |
H A D | posix.c | 930 posix_sock_create(const char *ip, int port, in SSL_writev() 957 if (ip == NULL) { in posix_sock_create() 960 if (ip[0] == '[') { in posix_sock_create() 961 snprintf(buf, sizeof(buf), "%s", ip + 1); in posix_sock_create() 966 ip = (const char *) &buf[0]; in posix_sock_create() 976 rc = getaddrinfo(ip, portnum, &hints, &res0); in posix_sock_create() 1003 "run before starting spdk app.\n", ip); in posix_sock_create() 1122 posix_sock_listen(const char *ip, int port, struct spdk_sock_opts *opts) in _posix_sock_accept() 1124 return posix_sock_create(ip, port, SPDK_SOCK_CREATE_LISTEN, opts, false); in _posix_sock_accept() 1128 posix_sock_connect(const char *ip, in in _posix_sock_accept() 946 posix_sock_create(const char * ip,int port,enum posix_sock_create_type type,struct spdk_sock_opts * opts,bool enable_ssl) posix_sock_create() argument 1106 posix_sock_listen(const char * ip,int port,struct spdk_sock_opts * opts) posix_sock_listen() argument 1112 posix_sock_connect(const char * ip,int port,struct spdk_sock_opts * opts) posix_sock_connect() argument 2258 ssl_sock_listen(const char * ip,int port,struct spdk_sock_opts * opts) ssl_sock_listen() argument 2264 ssl_sock_connect(const char * ip,int port,struct spdk_sock_opts * opts) ssl_sock_connect() argument [all...] |
/spdk/include/spdk/ |
H A D | string.h | 185 int spdk_parse_ip_addr(char *ip, char **host, char **port);
|
/spdk/module/sock/uring/ |
H A D | uring.c | 469 uring_sock_create(const char *ip, int port, in uring_sock_alloc() 490 if (ip == NULL) { in uring_sock_create() 493 if (ip[0] == '[') { in uring_sock_create() 494 snprintf(buf, sizeof(buf), "%s", ip + 1); in uring_sock_create() 499 ip = (const char *) &buf[0]; in uring_sock_create() 509 rc = getaddrinfo(ip, portnum, &hints, &res0); in uring_sock_create() 603 "run before starting spdk app.\n", ip); in uring_sock_create() 701 uring_sock_listen(const char *ip, int port, struct spdk_sock_opts *opts) in uring_sock_connect() 708 return uring_sock_create(ip, port, SPDK_SOCK_CREATE_LISTEN, opts); in uring_sock_accept() 712 uring_sock_connect(const char *ip, in in uring_sock_accept() 486 uring_sock_create(const char * ip,int port,enum uring_sock_create_type type,struct spdk_sock_opts * opts) uring_sock_create() argument 685 uring_sock_listen(const char * ip,int port,struct spdk_sock_opts * opts) uring_sock_listen() argument 696 uring_sock_connect(const char * ip,int port,struct spdk_sock_opts * opts) uring_sock_connect() argument [all...] |
/spdk/scripts/perf/nvmf/ |
H A D | run_nvmf.py | 135 def get_nic_name_by_ip(self, ip): 137 nics_json_obj = self.exec_cmd(["ip", "-j", "address", "show"]) 141 if ip in addr["local"]: 306 "protocol", "ip", "ingress", "prio", "1", "flower", 581 self._nics_json_obj = json.loads(self.exec_cmd(["ip", "-j", "address", "show"])) 668 for ip, nic_chunk in zip(self.initiator_info[i]["target_nic_ips"], init_chunks_list): 670 ip_bdev_map.append((ip, c)) 765 ConfigField(name='ip', required=True), 785 self.ssh_connection.connect(self.ip, username=self.username, password=self.password) 788 self._nics_json_obj = json.loads(self.exec_cmd(["ip", " 99 get_nic_name_by_ip(self, ip) global() argument [all...] |
H A D | README.md | 212 "ip": "10.0.0.1", 230 - ip - management IP address of initiator system to set up SSH connection.
|
/spdk/docker/ |
H A D | README.md | 56 deploying the containers. See `docker-compose.yaml` for the network's detailed setup and ip assignm…
|
/spdk/test/common/ |
H A D | autotest_common.sh | 1009 # $1 = monitor ip address 1016 if ip netns list | grep "$2"; then 1017 NS_CMD="ip netns exec $2"
|
/spdk/test/unit/lib/nvme/nvme_tcp.c/ |
H A D | nvme_tcp_ut.c | 1034 spdk_sock_connect_ext(const char *ip, int port, in spdk_sock_connect_ext() 1042 CU_ASSERT(!strcmp(ip, "192.168.1.78")); in spdk_sock_connect_ext() 1033 spdk_sock_connect_ext(const char * ip,int port,const char * _impl_name,struct spdk_sock_opts * opts) spdk_sock_connect_ext() argument
|