aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelien Aptel <aaptel@suse.com>2018-06-14 09:43:17 -0400
committerSteve French <stfrench@microsoft.com>2018-06-15 03:38:08 -0400
commitbead042cccca5a7c5626b851b66a30698aa0ac36 (patch)
tree314d8df395b301e9a6590e0411d8fe4219a818e3
parente2292430c49dbbe2d54438a4c05dd937a8eeecdd (diff)
CIFS: complete PDU definitions for interface queries
Signed-off-by: Aurelien Aptel <aaptel@suse.com> Signed-off-by: Steve French <stfrench@microsoft.com>
-rw-r--r--fs/cifs/smb2pdu.h23
1 files changed, 20 insertions, 3 deletions
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h
index a345560001ce..824dddeee3f2 100644
--- a/fs/cifs/smb2pdu.h
+++ b/fs/cifs/smb2pdu.h
@@ -851,8 +851,11 @@ struct validate_negotiate_info_rsp {
851 __le16 Dialect; /* Dialect in use for the connection */ 851 __le16 Dialect; /* Dialect in use for the connection */
852} __packed; 852} __packed;
853 853
854#define RSS_CAPABLE 0x00000001 854#define RSS_CAPABLE cpu_to_le32(0x00000001)
855#define RDMA_CAPABLE 0x00000002 855#define RDMA_CAPABLE cpu_to_le32(0x00000002)
856
857#define INTERNETWORK cpu_to_le16(0x0002)
858#define INTERNETWORKV6 cpu_to_le16(0x0017)
856 859
857struct network_interface_info_ioctl_rsp { 860struct network_interface_info_ioctl_rsp {
858 __le32 Next; /* next interface. zero if this is last one */ 861 __le32 Next; /* next interface. zero if this is last one */
@@ -860,7 +863,21 @@ struct network_interface_info_ioctl_rsp {
860 __le32 Capability; /* RSS or RDMA Capable */ 863 __le32 Capability; /* RSS or RDMA Capable */
861 __le32 Reserved; 864 __le32 Reserved;
862 __le64 LinkSpeed; 865 __le64 LinkSpeed;
863 char SockAddr_Storage[128]; 866 __le16 Family;
867 __u8 Buffer[126];
868} __packed;
869
870struct iface_info_ipv4 {
871 __be16 Port;
872 __be32 IPv4Address;
873 __be64 Reserved;
874} __packed;
875
876struct iface_info_ipv6 {
877 __be16 Port;
878 __be32 FlowInfo;
879 __u8 IPv6Address[16];
880 __be32 ScopeId;
864} __packed; 881} __packed;
865 882
866#define NO_FILE_ID 0xFFFFFFFFFFFFFFFFULL /* general ioctls to srv not to file */ 883#define NO_FILE_ID 0xFFFFFFFFFFFFFFFFULL /* general ioctls to srv not to file */