From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f193.google.com ([209.85.192.193]:40855 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934104AbeCHRU7 (ORCPT ); Thu, 8 Mar 2018 12:20:59 -0500 Subject: Re: [PATCH iproute2-next] rdma: Update device capabilities flags To: Leon Romanovsky Cc: Leon Romanovsky , netdev , Stephen Hemminger , RDMA mailing list References: <20180307090535.8986-1-leon@kernel.org> From: David Ahern Message-ID: <403074a9-b0fa-9042-76c3-bfa3042923c7@gmail.com> Date: Thu, 8 Mar 2018 10:20:45 -0700 MIME-Version: 1.0 In-Reply-To: <20180307090535.8986-1-leon@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org List-ID: On 3/7/18 2:05 AM, Leon Romanovsky wrote: > From: Leon Romanovsky > > In kernel commit e1d2e8873369 ("IB/core: Add PCI write > end padding flags for WQ and QP"), we introduced new > device capability to advertise PCI write end padding. > > PCI write end padding is the device's ability to pad the ending of > incoming packets (scatter) to full cache line such that the last > upstream write generated by an incoming packet will be a full cache > line. > > This commit updates RDMAtool to present this field. > > Signed-off-by: Leon Romanovsky > --- > rdma/dev.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/rdma/dev.c b/rdma/dev.c > index 03ab8683..e2eafe47 100644 > --- a/rdma/dev.c > +++ b/rdma/dev.c > @@ -53,7 +53,8 @@ static const char *dev_caps_to_str(uint32_t idx) > x(SG_GAPS_REG, 32) \ > x(VIRTUAL_FUNCTION, 33) \ > x(RAW_SCATTER_FCS, 34) \ > - x(RDMA_NETDEV_OPA_VNIC, 35) > + x(RDMA_NETDEV_OPA_VNIC, 35) \ > + x(PCI_WRITE_END_PADDING, 36) > > enum { RDMA_DEV_FLAGS(RDMA_BITMAP_ENUM) }; > > applied to iproute2-next