diff options
author | Steve French <smfrench@gmail.com> | 2013-10-14 01:21:53 -0500 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2013-11-02 12:53:45 -0500 |
commit | c481e9feee78c6ce1ba0a1c8c892049f6514f6cf (patch) | |
tree | f9b9491694abadbaf5bd6a5016449bb59702fcfa /drivers/misc/mei/nfc.c | |
parent | f10d9ba405ed250d647d6d810f8fc5ff2f62f370 (diff) |
Query network adapter info at mount time for debugging
When CONFIG_CIFS_STATS2 enabled query adapter info for debugging
It is easy now in SMB3 to query the information about the server's
network interfaces (and at least Windows 8 and above do this, if not
other clients) there are some useful pieces of information you can get
including:
- all of the network interfaces that the server advertises (not just
the one you are mounting over), and with SMB3 supporting multichannel
this helps with more than just failover (also aggregating multiple
sockets under one mount)
- whether the adapter supports RSS (useful to know if you want to
estimate whether setting up two or more socket connections to the same
address is going to be faster due to RSS offload in the adapter)
- whether the server supports RDMA
- whether the server has IPv6 interfaces (if you connected over IPv4
but prefer IPv6 e.g.)
- what the link speed is (you might want to reconnect over a higher
speed interface if available)
(Of course we could also rerequest this on every mount cheaplly to the
same server, as Windows apparently does, so we can update the adapter
info on new mounts, and also on every reconnect if the network
interface drops temporarily - so we don't have to rely on info from
the first mount to this server)
It is trivial to request this information - and certainly will be useful
when we get to the point of doing multichannel (and eventually RDMA),
but some of this (linkspeed etc.) info may help for debugging in
the meantime. Enable this request when CONFIG_CIFS_STATS2 is on
(only for smb3 mounts since it is an SMB3 or later ioctl).
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'drivers/misc/mei/nfc.c')
0 files changed, 0 insertions, 0 deletions