From nobody Wed Nov 02 16:35:54 2022 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N2XZL3rgMz4gKjr; Wed, 2 Nov 2022 16:35:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N2XZL3MWxz3mxn; Wed, 2 Nov 2022 16:35:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667406954; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=k4UDPyCNvOSDNQFH3aCMFLcmt4KjXkLcIsQVTYn79Xw=; b=eded64OVvF8Cyqa4MwpRpAFQG/JkS7zBLOzXoZ3JYQ3qiI2DJBpd19XOmO99dBRqd/qRi4 kctjAA2z4cB0BHYBe/3E//6xZfzp6OVRYY4MLeJb5841jCyaqKVlomqN62EPFYE4I9GwL3 v6qder9TXKGBKoWbAnPOvdAyhMrHHWk69RMm6MPmxEoXfAFQjZXlEM49s/ko0VNL0SAFjC wGyRSHXp4Ot5lN3aKZj63Af1L/+65hlC35+KXbXIBA+fA0AbrEw52ZGRUoChg7dZ/4Rudu 4aZaQil20zT7o7p0Tll3oTH+FDHOIBZYXVwNEIJoTrOnz2in0cvbwBoJc02+4w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N2XZL28t7z13FD; Wed, 2 Nov 2022 16:35:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2A2GZsaR022298; Wed, 2 Nov 2022 16:35:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A2GZsws022297; Wed, 2 Nov 2022 16:35:54 GMT (envelope-from git) Date: Wed, 2 Nov 2022 16:35:54 GMT Message-Id: <202211021635.2A2GZsws022297@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Piotr Kubaj Subject: git: a43afddd4325 - stable/12 - ofed: allow using IPv6 address in rc_pingpong server List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: a43afddd4325cf725c5b0897bfa43e31ac684f29 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667406954; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=k4UDPyCNvOSDNQFH3aCMFLcmt4KjXkLcIsQVTYn79Xw=; b=w9KwdDhRROFuzwRfSBLpBvKXrpEpWJuHXfg4eH9qpoEPlX5FSAbE7a0U47gg6DjJc0ms3D pmJ3KMNux6d5sVRJVleLwRCflJbBmUOU0cWwkj++DR9F9SlaO5JIXf35g7TJmx3kp7BCRk 4iAdUZ0D4SUSnCd1Bb4QL40vWEEoAug0529feXNF9XTLf8Klvy1+nAZ160KeOLpX2CfR4j eQJw7pSS9tPqZP9tY2eyyqCoYdhhM11LtGUWdsjMJMWNgydECyuV5HDOtFeaSzWF3IOvi3 yXIwCO7c8ySDz5bD3cIUnQVfiPKyQK5cltFjhv2scFNEnldAFBp4RmH6nNxWXg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667406954; a=rsa-sha256; cv=none; b=vXkiZG5Qm7MB4lY8KlIzOYDNWncsFazTdEiuYh7n3iCN0C2Xwl7pCbuB+xEmV2CGJXoeTC tmeExxmsVl04C5tx1Yh+uHkSYZTPGyEylBqd9F92puAUUI3oAyTNyWOkDdQRqR+UgRHfYb tyv/I2Y1Ae1+qFkbcNfb7kkcWPSs8iw2fo/UYzyccdi1SKN6Yd34t+eHeiUWQsQPcDpLdK Cp/7RFLCTEd6Y2qnL/qye0xDYYg9Yi/JinmuwkHxcpGqBuzvfM+KGPPeBBP7h1ervyYzKm xRGNW7RZFwa2plOR4f6nz2QDPtyM61Go12q5rnKd85oLpFwS+NuerGR5lNvVgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by pkubaj (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=a43afddd4325cf725c5b0897bfa43e31ac684f29 commit a43afddd4325cf725c5b0897bfa43e31ac684f29 Author: Piotr Kubaj AuthorDate: 2022-10-28 09:59:05 +0000 Commit: Piotr Kubaj CommitDate: 2022-11-02 16:35:40 +0000 ofed: allow using IPv6 address in rc_pingpong server Summary: The current OFED code allows binding server to IPv6 address. It was added back in https://github.com/linux-rdma/rdma-core/commit/91fc39561d04903cd5b1665d9215a184baa66ba9 Sponsored by: Intel Corporation MFC after: 3 days Reviewers: hselasky Subscribers: imp Differential Revision: https://reviews.freebsd.org/D37196 (cherry picked from commit 35c87c070a2d04f06c56578b0a4b2e9c13f62be5) (cherry picked from commit a8c06a9de066902599e93b857ecf4d70c007e3c9) --- contrib/ofed/libibverbs/examples/rc_pingpong.c | 2 +- contrib/ofed/libibverbs/examples/srq_pingpong.c | 2 +- contrib/ofed/libibverbs/examples/uc_pingpong.c | 2 +- contrib/ofed/libibverbs/examples/ud_pingpong.c | 2 +- contrib/ofed/libibverbs/examples/xsrq_pingpong.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/ofed/libibverbs/examples/rc_pingpong.c b/contrib/ofed/libibverbs/examples/rc_pingpong.c index d01bdb80092a..1e2601612742 100644 --- a/contrib/ofed/libibverbs/examples/rc_pingpong.c +++ b/contrib/ofed/libibverbs/examples/rc_pingpong.c @@ -230,7 +230,7 @@ static struct pingpong_dest *pp_server_exch_dest(struct pingpong_context *ctx, struct addrinfo *res, *t; struct addrinfo hints = { .ai_flags = AI_PASSIVE, - .ai_family = AF_INET, + .ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM }; char *service; diff --git a/contrib/ofed/libibverbs/examples/srq_pingpong.c b/contrib/ofed/libibverbs/examples/srq_pingpong.c index 1b40aa6076c0..676572b559c4 100644 --- a/contrib/ofed/libibverbs/examples/srq_pingpong.c +++ b/contrib/ofed/libibverbs/examples/srq_pingpong.c @@ -238,7 +238,7 @@ static struct pingpong_dest *pp_server_exch_dest(struct pingpong_context *ctx, struct addrinfo *res, *t; struct addrinfo hints = { .ai_flags = AI_PASSIVE, - .ai_family = AF_INET, + .ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM }; char *service; diff --git a/contrib/ofed/libibverbs/examples/uc_pingpong.c b/contrib/ofed/libibverbs/examples/uc_pingpong.c index fb030dc535b8..6225d6cda70c 100644 --- a/contrib/ofed/libibverbs/examples/uc_pingpong.c +++ b/contrib/ofed/libibverbs/examples/uc_pingpong.c @@ -204,7 +204,7 @@ static struct pingpong_dest *pp_server_exch_dest(struct pingpong_context *ctx, struct addrinfo *res, *t; struct addrinfo hints = { .ai_flags = AI_PASSIVE, - .ai_family = AF_INET, + .ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM }; char *service; diff --git a/contrib/ofed/libibverbs/examples/ud_pingpong.c b/contrib/ofed/libibverbs/examples/ud_pingpong.c index 419925ab1d40..266b5964a41b 100644 --- a/contrib/ofed/libibverbs/examples/ud_pingpong.c +++ b/contrib/ofed/libibverbs/examples/ud_pingpong.c @@ -202,7 +202,7 @@ static struct pingpong_dest *pp_server_exch_dest(struct pingpong_context *ctx, struct addrinfo *res, *t; struct addrinfo hints = { .ai_flags = AI_PASSIVE, - .ai_family = AF_INET, + .ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM }; char *service; diff --git a/contrib/ofed/libibverbs/examples/xsrq_pingpong.c b/contrib/ofed/libibverbs/examples/xsrq_pingpong.c index b3c7f703441f..83abaf7780d8 100644 --- a/contrib/ofed/libibverbs/examples/xsrq_pingpong.c +++ b/contrib/ofed/libibverbs/examples/xsrq_pingpong.c @@ -596,7 +596,7 @@ static int pp_server_connect(int port) int sockfd = -1, connfd; struct addrinfo hints = { .ai_flags = AI_PASSIVE, - .ai_family = AF_INET, + .ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM };