diff options
author | Aurelien Aptel <aaptel@suse.com> | 2018-06-14 15:43:18 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-06-15 09:38:08 +0200 |
commit | b6f0dd5d75f9689d57c7ea49e52c80cabb876cb4 (patch) | |
tree | 95c487b99249eca1427e75614c7ee31f5acc1dd7 /fs/cifs/cifsglob.h | |
parent | CIFS: complete PDU definitions for interface queries (diff) | |
download | linux-b6f0dd5d75f9689d57c7ea49e52c80cabb876cb4.tar.xz linux-b6f0dd5d75f9689d57c7ea49e52c80cabb876cb4.zip |
CIFS: add iface info to struct cifs_ses
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index ff280447dae5..9dd5f1a3d64b 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -841,6 +841,13 @@ static inline void cifs_set_net_ns(struct TCP_Server_Info *srv, struct net *net) #endif +struct cifs_server_iface { + size_t speed; + unsigned int rdma_capable : 1; + unsigned int rss_capable : 1; + struct sockaddr_storage sockaddr; +}; + /* * Session structure. One of these for each uid session with a particular host */ @@ -878,6 +885,20 @@ struct cifs_ses { #ifdef CONFIG_CIFS_SMB311 __u8 preauth_sha_hash[SMB2_PREAUTH_HASH_SIZE]; #endif /* 3.1.1 */ + + /* + * Network interfaces available on the server this session is + * connected to. + * + * Other channels can be opened by connecting and binding this + * session to interfaces from this list. + * + * iface_lock should be taken when accessing any of these fields + */ + spinlock_t iface_lock; + struct cifs_server_iface *iface_list; + size_t iface_count; + unsigned long iface_last_update; /* jiffies */ }; static inline bool |