[PATCH 0/1] Add Host Transport Interface option (host-triface)
Martin Belanger
nitram_67 at hotmail.com
Thu Apr 15 20:28:47 BST 2021
From: Martin Belanger <martin.belanger at dell.com>
In our application, we need a way to force TCP connections to go out a
specific interface instead of letting Linux select the interface based
on the routing tables. This patch adds the option 'host-triface' to allow
specifying the interface to use. Note that corresponding changes to the
nvme-cli utility will follow.
Martin Belanger (1):
Add 'Transport Interface' (triface) option. This can be used to
specify the IP interface to use for the connection. The driver uses
that to set SO_BINDTODEVICE on the socket before connecting.
drivers/nvme/host/core.c | 5 +++++
drivers/nvme/host/fabrics.c | 14 +++++++++++++
drivers/nvme/host/fabrics.h | 6 +++++-
drivers/nvme/host/tcp.c | 41 ++++++++++++++++++++++++++++++++++---
4 files changed, 62 insertions(+), 4 deletions(-)
--
2.25.1
More information about the Linux-nvme
mailing list