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 59456A04C5; Fri, 4 Sep 2020 20:56:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 69A47E07; Fri, 4 Sep 2020 20:56:04 +0200 (CEST) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by dpdk.org (Postfix) with ESMTP id E0C5BCF3 for ; Fri, 4 Sep 2020 20:56:02 +0200 (CEST) Received: by mail-pf1-f193.google.com with SMTP id v196so5116736pfc.1 for ; Fri, 04 Sep 2020 11:56:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xgUaPPPocw6UfupO8R/2clIiPo3x7pTE4G5azDK6lFo=; b=ULxsUJ2GURDq45u0Siz6oyP4gmWj+qhICTC2WXh+DRN4vBP1ZNwRp/ntUJn/91NmHp WCjYWmzH1c3lgXlY882rnTMu5LcG4MNaY4HWGNUn+E+5Fkh9Qqe5dLjq/97Szl2ervu1 283Y6aXnyhmfYCdC9oti6ihTiN8CEi7H46pR6Z5dp56RkI1eKauenVue80nL4+9OMLr3 J4wVGl3Meo7V1n043wFqBeKLTJIhH9ByZ4LFaYEik0EYQYFXeXehyBGo3IfnMxPs+jML S0kCVSSTYIVfeZ9dZ1hltMbUc8azGLTepnimupIB3fr6dZfb55derJdpi6GytIkG9nvO T1Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xgUaPPPocw6UfupO8R/2clIiPo3x7pTE4G5azDK6lFo=; b=dog711c3MEU0fUjvWgoKj+0AVmSrah6104XSSYyEFyEirCxz2PWyAPeFkPy/1xpEtZ rniBLfBncQmycCWgTMnQEy4/5J1K4HetaA2wBnFWOvfVBGP5nDFTSEiIovSUkIh1fOLf NKwhURyP5/rEGzEBsMphGTsB/+/stJai5pP0iReV5/xGV2g0PNrfrD4rCroNyfM+dftD /4wfS3vflCbL+2+mGtKd+GT7oe4RsmjSoCWSWbI67XmYryan5bTpyvsfHHNXrVM/wFNt cCWhRIRPNTzf5qrA2N8v4acG/tH0VKzxx9aL6AdmUHcZeprxsal8Un/YZwh3fR/GdOFN uslQ== X-Gm-Message-State: AOAM532GiGTGJ1NU5RUQYwsJT0r9LywzVqWrhBd6wHBdysKom8dNsY23 B/rtnT2+Lq/HPCtkJHKVNtfr8A== X-Google-Smtp-Source: ABdhPJyh6kNon1P+Q/9yXJ6W9mT8VmSeNKahSzAfgqc7RHaxtFURMNBXvyP5UhexcbU82et8u1eEMw== X-Received: by 2002:a63:e20:: with SMTP id d32mr8032567pgl.53.1599245762007; Fri, 04 Sep 2020 11:56:02 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id 190sm7737624pfy.22.2020.09.04.11.56.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Sep 2020 11:56:01 -0700 (PDT) Date: Fri, 4 Sep 2020 11:55:54 -0700 From: Stephen Hemminger To: Haiyue Wang Cc: dev@dpdk.org, Olivier Matz Message-ID: <20200904115554.50f9faae@hermes.lan> In-Reply-To: <20200904054020.77648-1-haiyue.wang@intel.com> References: <20200904054020.77648-1-haiyue.wang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v1] net: expand the data size of L3 length to 16 bits 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" On Fri, 4 Sep 2020 13:40:20 +0800 Haiyue Wang wrote: > diff --git a/lib/librte_net/rte_net.h b/lib/librte_net/rte_net.h > index 94b06d9ee..992fb088a 100644 > --- a/lib/librte_net/rte_net.h > +++ b/lib/librte_net/rte_net.h > @@ -20,11 +20,11 @@ extern "C" { > */ > struct rte_net_hdr_lens { > uint8_t l2_len; > - uint8_t l3_len; > + uint16_t l3_len; > uint8_t l4_len; Please reorder these to avoid creating a structure hole.