Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753307AbdHBUXH (ORCPT ); Wed, 2 Aug 2017 16:23:07 -0400 Received: from a2nlsmtp01-05.prod.iad2.secureserver.net ([198.71.225.49]:47956 "EHLO a2nlsmtp01-05.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752812AbdHBUMT (ORCPT ); Wed, 2 Aug 2017 16:12:19 -0400 x-originating-ip: 107.180.71.197 From: Long Li To: Steve French , linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org Cc: Long Li Subject: [[PATCH v1] 08/37] [CIFS] SMBD: Define packet format for SMBD data transfer message Date: Wed, 2 Aug 2017 13:10:19 -0700 Message-Id: <1501704648-20159-9-git-send-email-longli@exchange.microsoft.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1501704648-20159-1-git-send-email-longli@exchange.microsoft.com> References: <1501704648-20159-1-git-send-email-longli@exchange.microsoft.com> X-CMAE-Envelope: MS4wfAzI/p2qlK4m/UVu/LvEnWlH4vigq9ZPPMq6Y9su/8PrkAImD0A3rb6bo4m1nYRxbSDhiSuZ6O9z0G1uiewkZYwrgNqz9gvZ9ZIaATdqqt2mN6jM1aIL ec+4N6FLdXvxUlqP6OwHPPbtubsbsJfuSlH8CSJJ0xA7IyPJjpk0qWJDFnqPYFnhf5wdEw+xtYIkb+qdqJ1bLbN9SOt2/hJ3GPCk7v0Xhsntynl9bkEQ0Pai XYDddOazNPccRg6Si9rdql3BG3wWiww9eeHTv1s3O71i04n88HFYscUtJKzfU4eLxH3ygKjPIL+XncesJ1KNkQr8mRdk/oEUFTwGZbD/SuY= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 889 Lines: 37 From: Long Li Define the packet format for a SMBD data packet with payload Signed-off-by: Long Li --- fs/cifs/cifsrdma.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/fs/cifs/cifsrdma.h b/fs/cifs/cifsrdma.h index 78ce2bf..ed0ff54 100644 --- a/fs/cifs/cifsrdma.h +++ b/fs/cifs/cifsrdma.h @@ -78,6 +78,21 @@ enum smbd_message_type { SMBD_TRANSFER_DATA, }; +#define SMB_DIRECT_RESPONSE_REQUESTED 0x0001 + +// SMBD data transfer packet with payload [MS-SMBD] 2.2.3 +struct smbd_data_transfer { + __le16 credits_requested; + __le16 credits_granted; + __le16 flags; + __le16 reserved; + __le32 remaining_data_length; + __le32 data_offset; + __le32 data_length; + __le32 padding; + char buffer[0]; +} __packed; + // The context for a SMBD response struct cifs_rdma_response { struct cifs_rdma_info *info; -- 2.7.4