From patchwork Thu Oct 25 10:31:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: piaojun X-Patchwork-Id: 10655693 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B88BE14BB for ; Thu, 25 Oct 2018 10:32:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A6C9C2B50D for ; Thu, 25 Oct 2018 10:32:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B98F2B57F; Thu, 25 Oct 2018 10:32:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from userp2120.oracle.com (userp2120.oracle.com [156.151.31.85]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 350702B558 for ; Thu, 25 Oct 2018 10:32:30 +0000 (UTC) Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9PATrRr124016; Thu, 25 Oct 2018 10:32:18 GMT Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2n7w0r0ngy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Oct 2018 10:32:18 +0000 Received: from oss.oracle.com (oss-old-reserved.oracle.com [137.254.22.2]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w9PAWErN000569 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 25 Oct 2018 10:32:14 GMT Received: from localhost ([127.0.0.1] helo=lb-oss.oracle.com) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1gFcw2-00027Q-58; Thu, 25 Oct 2018 03:32:14 -0700 Received: from aserv0021.oracle.com ([141.146.126.233]) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1gFcvJ-000260-LO for ocfs2-devel@oss.oracle.com; Thu, 25 Oct 2018 03:31:30 -0700 Received: from userp2040.oracle.com (userp2040.oracle.com [156.151.31.90]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w9PAVSfV008189 (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 25 Oct 2018 10:31:29 GMT Received: from pps.filterd (userp2040.oracle.com [127.0.0.1]) by userp2040.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9PAUNuO010442 for ; Thu, 25 Oct 2018 10:31:28 GMT Received: from huawei.com (szxga05-in.huawei.com [45.249.212.191]) by userp2040.oracle.com with ESMTP id 2nb98uv6hc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 25 Oct 2018 10:31:28 +0000 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 3C6AD31328047; Thu, 25 Oct 2018 18:31:21 +0800 (CST) Received: from [10.177.253.249] (10.177.253.249) by smtp.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.408.0; Thu, 25 Oct 2018 18:31:17 +0800 To: "akpm@linux-foundation.org" , "mark@fasheh.com" , Joel Becker , Junxiao Bi , Joseph Qi From: piaojun Message-ID: <5BD19B73.7050607@huawei.com> Date: Thu, 25 Oct 2018 18:31:15 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 X-Originating-IP: [10.177.253.249] X-CFilter-Loop: Reflected X-CLX-Shades: MLX X-CLX-Response: 1TFkXGRsYEQpMehcYGh8RCllNF2dmchEKWUkXGnEaEBp3BhgTGHESGRkQGnc GGBoGGhEKWV4XaG55EQpJRhdFWEtJRk91WlhFTl9JXkNFRBl1T0sRCkNOF0VhW0VcExhrcmNNbx JkYlpbTHteZ3NMe39jc2dpRhJ8EQpYXBcfBBoEGx8bB0gaSBwTSUwfBRsaBBsaGgQeEgQfEBseG h8aEQpeWRd+aBprSBEKTVwXGRgaEQpMWhdpa2lNTV0RCkNaFx4fBBgeEwQYGxgEGxMbEQpCXhcb EQpEXhcdEQpESRcYEQpCRhduXkVCSUIZHGRPQhEKQlwXGhEKQkUXZlxse3BkYnoSfEMRCkJOF2x CSFlTGk1leHgdEQpCTBdvSxkSEkRZeVsbXxEKQmwXYwVCUmZAYl5ae1IRCkJAF2JoR3hpSEtzQQ FyEQpCWBdifW95AU8YGXBwexEKWlgXGxEKcGgXZnlacxJfbGAcT3gQGRoRCnBoF2AaU2BLb0JkH 1hkEBkaEQpwaBdrRUxeTEtCaQFnGBAZGhEKcGgXZFBzb0QYRGF7ZGYQGRoRCnBoF2BgQk9nGkFO GxJhEBkaEQpwbBdhSXlDenNJeGdsYhAZGhEKbX4XGhEKWE0XSxEg X-PDR: PASS X-Source-IP: 45.249.212.191 X-ServerName: szxga05-in.huawei.com X-Proofpoint-SPF-Result: pass X-Proofpoint-SPF-Record: v=spf1 ip4:45.249.212.32 ip4:45.249.212.35 ip4:119.145.14.93 ip4:58.251.152.93 ip4:194.213.3.17 ip4:206.16.17.72 ip4:45.249.212.255 ip4:45.249.212.187/29 ip4:45.249.212.191 ip4:185.176.76.210 ~all X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9056 signatures=668683 X-Proofpoint-DMARC-Record: none X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=205 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=312 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=915 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810250094 X-Spam: Clean Cc: "ocfs2-devel@oss.oracle.com" Subject: [Ocfs2-devel] [RFC PATCH 0/5] ocfs2: support IPv6 communication in o2cb cluster X-BeenThere: ocfs2-devel@oss.oracle.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: ocfs2-devel-bounces@oss.oracle.com Errors-To: ocfs2-devel-bounces@oss.oracle.com X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9056 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810250094 X-Virus-Scanned: ClamAV using ClamSMTP o2cb cluster only support IPv4 node configuration nowadays. Along with IPv6 used more widely, ocfs2 should also keep up with the pace. This patch series add configfs attribute for IPv6 configure and build connnection between nodes with IPv6 socket. So the nodes in cluster could send dlm messages through IPv6 network protocol. Jun Piao (5): ocfs2/cluster: add configfs attributes for IPv6 address and port ocfs2/cluster: implement show & store method for IPv6 attribute ocfs2/cluster: support IPv6 socket connection between nodes ocfs2/dlm: modify message DLM_QUERY_NODEINFO to adapt IPv6 node ocfs2/cluster: modify socket container macro to adapt IPv6 cluster/nodemanager.c | 157 +++++++++++++++++++----- cluster/nodemanager.h | 11 + cluster/tcp.c | 323 ++++++++++++++++++++++++++++++++++++-------------- cluster/tcp.h | 2 dlm/dlmcommon.h | 12 + dlm/dlmdomain.c | 93 ++++++++++---- 6 files changed, 450 insertions(+), 148 deletions(-)