Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753280AbdDMMAL (ORCPT ); Thu, 13 Apr 2017 08:00:11 -0400 Received: from mx2.suse.de ([195.135.220.15]:33932 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751473AbdDMMAH (ORCPT ); Thu, 13 Apr 2017 08:00:07 -0400 Date: Thu, 13 Apr 2017 14:00:00 +0200 From: Johannes Thumshirn To: Moni Shoua , Sagi Grimberg , Max Gurtovoy Cc: Linux Kernel Mailinglist , linux-rdma@vger.kernel.org, Hannes Reinecke Subject: Re: [PATCH] IB/rxe: Don't clamp residual length to mtu Message-ID: <20170413120000.GI6734@linux-x5ow.site> References: <20170406124944.11074-1-jthumshirn@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170406124944.11074-1-jthumshirn@suse.de> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1103 Lines: 24 On Thu, Apr 06, 2017 at 02:49:44PM +0200, Johannes Thumshirn wrote: > When reading a RDMA WRITE FIRST packet we copy the DMA length from the RDMA > header into the qp->resp.resid variable for later use. Later in check_rkey() > we clamp it to the MTU if the packet is an RDMA WRITE packet and has a > residual length bigger than the MTU. Later in write_data_in() we subtract the > payload of the packet from the residual length. If the packet happens to have a > payload of exactly the MTU size we end up with a residual length of 0 despite > the packet not being the last in the conversation. When the next packet in the > conversation arrives, we don't have any residual length left and thus set the QP Hi Moni, Sagi and Max, Any comments on this? Thanks, Johannes -- Johannes Thumshirn Storage jthumshirn@suse.de +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850