From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 67538A0562; Tue, 31 Mar 2020 11:48:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 456AE1C045; Tue, 31 Mar 2020 11:48:34 +0200 (CEST) Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) by dpdk.org (Postfix) with ESMTP id EA7D81BFC1 for ; Tue, 31 Mar 2020 11:48:32 +0200 (CEST) Received: by mail-ed1-f44.google.com with SMTP id de14so24319914edb.4 for ; Tue, 31 Mar 2020 02:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=cGnNRmQQ9sCx0E4ftlt6nZzjHozQ2Ot41nZ8YXLiZko=; b=mWs0p+qCPWJefxTpOlUCbWesrW8G4e1S+gMHqihR4ugbcjkM0iY22vIVb+pCVmXuu+ nZYIAVgZUfUbXwiGLxQonzxbzCvccBb62SUWnfmPa9ZTTNEguCC/cMtQ+IXQ+D+BosZL GbFIfHuuj02Be+St0Nkye8cIkMSFUaqj5RgbO4U+5WrxOz2LFtbWp9Ui29WNFdxJCspJ Beo60V5ESq+o6E35BIWLqOh928IPZl1JGfb/VQS5wk6XainkPvMaq8T8DNK2wohNJRSu xO0q4s+rq5wqQt/IuXlqwcirT3viZSr8jhT2aZDroKsyst5YSyz9M6v5qtlC0EixIkvM U0dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=cGnNRmQQ9sCx0E4ftlt6nZzjHozQ2Ot41nZ8YXLiZko=; b=U+/i2mDsF4P9rSCL3Xx8O/fFk9iesDNGd2PWO1ONR1HW3yR6EJtG8smPIv2uAiJ0gw nSOISuOu+lhoEBwu+tINjli0rf1CugYateHyt950IFvmZ8s5wEAZhQsoDtP3JhYgRrrK /zKraweG00AHpN798p7vn16r2dW9CDkWT8NSoEtp2sYKMAHOanhRwa7iBFWbK015BNxL RzV9vI5Pokt/hPIlXg69/j7xheXWcI4/N7QuMrkiXYHTULbtqD7gNCoTZ++12T7EgjMk y1774CBFddiShLw4IKmjgzSl4ei2ZT7WwHIaphjhN8VpGT7Jfs5Hpimx7VGVADtfZsJv J4Cg== X-Gm-Message-State: ANhLgQ1U4gfh/vePmpnAIRpwe7J2MiMHiW6pEmZInyUJHySig0m2cU7J hj8Xa2zL0yGmnHCL8E+WL9L7Ea+gVNCAZyBJ+42f4A== X-Google-Smtp-Source: ADFU+vtjLGfMSCKxdjPZNUu8s8l/X2pPrkzhPmgB4Y3dZbsPLlCg0CAAI6GwRcbPnbY1ROSX/ykL0tr5dmM95SOUizE= X-Received: by 2002:a17:906:164f:: with SMTP id n15mr9791295ejd.322.1585648112736; Tue, 31 Mar 2020 02:48:32 -0700 (PDT) MIME-Version: 1.0 References: <20200327101823.12646-1-mk@semihalf.com> <20200327101823.12646-2-mk@semihalf.com> <20200327075102.65f68358@hermes.lan> In-Reply-To: <20200327075102.65f68358@hermes.lan> From: =?UTF-8?Q?Micha=C5=82_Krawczyk?= Date: Tue, 31 Mar 2020 11:48:21 +0200 Message-ID: To: Stephen Hemminger Cc: dev@dpdk.org, Marcin Wojtas , Maciej Bielski , "Tzalik, Guy" , "Schmeilin, Evgeny" , "Chauskin, Igor" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH 01/29] net/ena: check if size of buffer is at least 1400B X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" pt., 27 mar 2020 o 15:51 Stephen Hemminger napisa=C5=82(a): > > On Fri, 27 Mar 2020 11:17:55 +0100 > Michal Krawczyk wrote: > > > + /* ENA isn't supporting buffers smaller than 1400 bytes */ > > + buffer_size =3D mp->elt_size - sizeof(struct rte_mbuf) - > > + RTE_PKTMBUF_HEADROOM; > > This should use rte_pktmbuf_data_room_size(mp) - RTE_PKTMBUF_HEADROOM Thanks - I'll change it in v2.