From: Zheng Yongjun <zhengyongjun3@huawei.com>
To: <davem@davemloft.net>, <kuba@kernel.org>,
<netdev@vger.kernel.org>, <linux-rdma@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Cc: Zheng Yongjun <zhengyongjun3@huawei.com>
Subject: [PATCH net-next] net: rds: Change PF_INET to AF_INET
Date: Wed, 16 Dec 2020 15:06:20 +0800 [thread overview]
Message-ID: <20201216070620.16063-1-zhengyongjun3@huawei.com> (raw)
By bsd codestyle, change PF_INET to AF_INET.
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
---
net/rds/rdma_transport.c | 4 ++--
net/rds/tcp_listen.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/net/rds/rdma_transport.c b/net/rds/rdma_transport.c
index 5f741e51b4ba..04102dbc04d2 100644
--- a/net/rds/rdma_transport.c
+++ b/net/rds/rdma_transport.c
@@ -249,7 +249,7 @@ static int rds_rdma_listen_init(void)
#endif
struct sockaddr_in sin;
- sin.sin_family = PF_INET;
+ sin.sin_family = AF_INET;
sin.sin_addr.s_addr = htonl(INADDR_ANY);
sin.sin_port = htons(RDS_PORT);
ret = rds_rdma_listen_init_common(rds_rdma_cm_event_handler,
@@ -259,7 +259,7 @@ static int rds_rdma_listen_init(void)
return ret;
#if IS_ENABLED(CONFIG_IPV6)
- sin6.sin6_family = PF_INET6;
+ sin6.sin6_family = AF_INET6;
sin6.sin6_addr = in6addr_any;
sin6.sin6_port = htons(RDS_CM_PORT);
sin6.sin6_scope_id = 0;
diff --git a/net/rds/tcp_listen.c b/net/rds/tcp_listen.c
index 101cf14215a0..8dc71aee4691 100644
--- a/net/rds/tcp_listen.c
+++ b/net/rds/tcp_listen.c
@@ -281,7 +281,7 @@ struct socket *rds_tcp_listen_init(struct net *net, bool isv6)
if (isv6) {
sin6 = (struct sockaddr_in6 *)&ss;
- sin6->sin6_family = PF_INET6;
+ sin6->sin6_family = AF_INET6;
sin6->sin6_addr = in6addr_any;
sin6->sin6_port = (__force u16)htons(RDS_TCP_PORT);
sin6->sin6_scope_id = 0;
@@ -289,7 +289,7 @@ struct socket *rds_tcp_listen_init(struct net *net, bool isv6)
addr_len = sizeof(*sin6);
} else {
sin = (struct sockaddr_in *)&ss;
- sin->sin_family = PF_INET;
+ sin->sin_family = AF_INET;
sin->sin_addr.s_addr = INADDR_ANY;
sin->sin_port = (__force u16)htons(RDS_TCP_PORT);
addr_len = sizeof(*sin);
--
2.22.0
next reply other threads:[~2020-12-16 7:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-16 7:06 Zheng Yongjun [this message]
2020-12-17 0:51 ` [PATCH net-next] net: rds: Change PF_INET to AF_INET Jakub Kicinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201216070620.16063-1-zhengyongjun3@huawei.com \
--to=zhengyongjun3@huawei.com \
--cc=davem@davemloft.net \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).