Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp525033pxb; Tue, 2 Feb 2021 10:46:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrmmq3Jh9sSiXi0KemIREWQV7ib9aLodbkehiDCT/auBPZx7o+i9O+n7g7vGG0JuCfTy2a X-Received: by 2002:a17:906:5846:: with SMTP id h6mr23331281ejs.521.1612291617131; Tue, 02 Feb 2021 10:46:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612291617; cv=none; d=google.com; s=arc-20160816; b=Pm+kvqnW4TTysj+qZO1ecfJVLKYbjv9e8Xj5/w5j8+iunVws1aVP/JTJv1tLuqvgi0 MXhaCvsa2/KnkJCfFSalR+bgiVkKQRMrIUPFogcMJYBD5sTAgrjqqb9kxCyUouaVUrBZ ouNvAwuPu2TTG4LH7Ky+zDxGsiN84Dt3SpN2UzrwHxvOcP79k+7u0kLsGgYxuXPvE/CW Gp/QQLxx1LpYnnZAtRif0bQGGDzqw/OGB0DvNZEVS3K7c24+hrE0uwj3SubtoNuJyMVA 5sYDoIQp9IYQ+txOtjW3WwjLlFQsoOjnCCB0QtFiEVBWjA73MdwcCmW+EB6xyKz5fdQx FsRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=15OHnxD+2xiRrqxd/g7CU3xZ31zwjreMRfj+4glkFD4=; b=jnLpN30UIcAfGS9bLLYZihuTrKa4Zp2D6JIZd9g6EtXYEZQ6VmlQQbVBbaQ4QePvfp y8m02PZ5Bq5czhvz0+S6c71Y5VR9q8mABsJNMwRlr56xuwfemjmI762+5FNEemQQ1a9E Vh6RaqQjZlVNygsfmGq3o5V2GkGkja52m/MZTOtHX/ubjHOY8fH7o4nShVeFZ4pgruQw JwIU2m2REPg/WZEArwetv2w/SXg53iXOrjeRzm6kS8wL71hKkQ5GCtGxobcmJDPj2yCd BZpDktjeEozHpqMLDsD7QeGDum5lRkfbnqNV2YvQjulDvwxZGmT0PzLRcLVAjKB8qKbJ 1OgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TNnN2Ddx; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s21si12612977edd.135.2021.02.02.10.46.19; Tue, 02 Feb 2021 10:46:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TNnN2Ddx; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238919AbhBBSoy (ORCPT + 99 others); Tue, 2 Feb 2021 13:44:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238882AbhBBSn2 (ORCPT ); Tue, 2 Feb 2021 13:43:28 -0500 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1E85C061786 for ; Tue, 2 Feb 2021 10:42:47 -0800 (PST) Received: by mail-qk1-x733.google.com with SMTP id r77so20800119qka.12 for ; Tue, 02 Feb 2021 10:42:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=15OHnxD+2xiRrqxd/g7CU3xZ31zwjreMRfj+4glkFD4=; b=TNnN2Ddxlm/WrWL9/hnub+eoGDLAL7sJY5brWOBtTESEGTd+25h271je9/MPMSg8sN KjAJJ6GN1B3IPjyuJOMMczKwTf3SGgeerL6J4Ee+vrJdz6LyAyQpQcoB4skG+i7TI3yZ r9Ro6Y3MxosZpEcr7ko1mDQIK8jyyPP08EKry0TOSUu2zjqrDqfI9n/a2l2vDhvHW8JR UmCWgeiXofhQ9tyuLafFhxwExYme0ueIlwlvcOFjYBfKA02DV/lX7LDzHCXwiCmosyWf rE+t4D4g4gezSSP3ayzlZAqZgp6kUTbgyA2uaUv3Q65Y7jqTFXcgHBaBZ6ltNd+Seect Zpww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=15OHnxD+2xiRrqxd/g7CU3xZ31zwjreMRfj+4glkFD4=; b=GiblUQWAPlvvcw4AsARfqNnwgQDGUS0POMM8wkJfVf/sLkkk7d5Soo0tOK38tgWKYg bSQU0IKqILA2Tf40DNs+brc1nXy+AkOCXC+RDHbEkIovTWGm+/5cYDjsZ3JskotSEKF1 1/AK51QQ96ybIZ5i/4T7klfUcP9bncUDO4uvWAZ1VzWeoHVGnya2InF97BvTcde2GRea cndGCwDV0/tTC3A/bGuVtwjgqRKoqsCXUgSh6Vii3QLNqKhQDxaFMTWaeTRMlHKOL3ma aYpc2KOrx7qDWhK3BF3l83qEVwbF1a/Xz+ip8Sl1AfCUOQ6wcRkTMRiaFMzR8lUpmFOJ bf/A== X-Gm-Message-State: AOAM533+01EZQmKemiK+WBDgtDY+hOo1m8EWgHEfWUG2wpqLI2bhW7n7 urnzv9ofee9nnXK1awvntemmBZ+2juCwWQ== X-Received: by 2002:a05:620a:b19:: with SMTP id t25mr21629031qkg.59.1612291366722; Tue, 02 Feb 2021 10:42:46 -0800 (PST) Received: from gouda.nowheycreamery.com (c-68-32-74-190.hsd1.mi.comcast.net. [68.32.74.190]) by smtp.gmail.com with ESMTPSA id k4sm7415906qtq.13.2021.02.02.10.42.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Feb 2021 10:42:46 -0800 (PST) Sender: Anna Schumaker From: schumaker.anna@gmail.com X-Google-Original-From: Anna.Schumaker@Netapp.com To: linux-nfs@vger.kernel.org Cc: Anna.Schumaker@Netapp.com Subject: [PATCH v2 0/5] SUNRPC: Create sysfs files for changing IP Date: Tue, 2 Feb 2021 13:42:39 -0500 Message-Id: <20210202184244.288898-1-Anna.Schumaker@Netapp.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Anna Schumaker It's possible for an NFS server to go down but come back up with a different IP address. These patches provide a way for administrators to handle this issue by providing a new IP address for xprt sockets to connect to. Chuck has suggested some ideas for future work that could also use this interface, such as: - srcaddr: To move between network devices on the client - type: "tcp", "rdma", "local" - bound: 0 for autobind, or the result of the most recent rpcbind query - connected: either true or false - last: read-only timestamp of the last operation to use the transport - device: A symlink to the physical network device Changes in v2: - Put files under /sys/kernel/sunrpc/ instead of /sys/net/sunrpc/ - Rename file from "address" to "dstaddr" Thoughts? Anna Anna Schumaker (5): sunrpc: Create a sunrpc directory under /sys/kernel/ sunrpc: Create a net/ subdirectory in the sunrpc sysfs sunrpc: Create per-rpc_clnt sysfs kobjects sunrpc: Prepare xs_connect() for taking NULL tasks sunrpc: Create a per-rpc_clnt file for managing the destination IP address include/linux/sunrpc/clnt.h | 1 + net/sunrpc/Makefile | 2 +- net/sunrpc/clnt.c | 5 ++ net/sunrpc/sunrpc_syms.c | 8 ++ net/sunrpc/sysfs.c | 168 ++++++++++++++++++++++++++++++++++++ net/sunrpc/sysfs.h | 22 +++++ net/sunrpc/xprtsock.c | 3 +- 7 files changed, 207 insertions(+), 2 deletions(-) create mode 100644 net/sunrpc/sysfs.c create mode 100644 net/sunrpc/sysfs.h -- 2.29.2