[PATCH 0/1] nvme-tcp: Add option to set the physical interface to be used when connecting over TCP sockets.

Hannes Reinecke hare at suse.de
Mon May 3 17:24:35 BST 2021


On 5/3/21 5:23 PM, Martin Belanger wrote:
> From: Martin Belanger <martin.belanger at dell.com>
> 
> In our application, we need a way to force TCP connections to go out a
> specific IP 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
> 
> 
Is this a plain resend, or did you address any of the reviews?
If you addressed any reviews please use 'PATCHv2' (instead of just 
'PATCH'), to indicate that this is an update to the previous version.

If it's a resend please state so, too (eg by using 'PATCH RESEND' or 
something).

And as this is just a single patch the cover letter is not required.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                Kernel Storage Architect
hare at suse.de                              +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer



More information about the Linux-nvme mailing list