Merge patch "RISC-V: Add ptrace support for vectors"
[platform/kernel/linux-starfive.git] / fs / smb / common / smb2pdu.h
index bae590e..2680251 100644 (file)
@@ -153,6 +153,28 @@ struct smb2_hdr {
        __u8   Signature[16];
 } __packed;
 
+struct smb3_hdr_req {
+       __le32 ProtocolId;      /* 0xFE 'S' 'M' 'B' */
+       __le16 StructureSize;   /* 64 */
+       __le16 CreditCharge;    /* MBZ */
+       __le16 ChannelSequence; /* See MS-SMB2 3.2.4.1 and 3.2.7.1 */
+       __le16 Reserved;
+       __le16 Command;
+       __le16 CreditRequest;   /* CreditResponse */
+       __le32 Flags;
+       __le32 NextCommand;
+       __le64 MessageId;
+       union {
+               struct {
+                       __le32 ProcessId;
+                       __le32  TreeId;
+               } __packed SyncId;
+               __le64  AsyncId;
+       } __packed Id;
+       __le64  SessionId;
+       __u8   Signature[16];
+} __packed;
+
 struct smb2_pdu {
        struct smb2_hdr hdr;
        __le16 StructureSize2; /* size of wct area (varies, request specific) */