From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH] doc: add GRO API requirement in prog_guide Date: Fri, 4 Jan 2019 11:35:45 -0800 Message-ID: <20190104113545.7d31a819@hermes.lan> References: <1545107119-85376-1-git-send-email-jiayu.hu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Jiayu Hu Return-path: Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by dpdk.org (Postfix) with ESMTP id 72E031B4C6 for ; Fri, 4 Jan 2019 20:35:53 +0100 (CET) Received: by mail-pl1-f196.google.com with SMTP id u6so17836144plm.8 for ; Fri, 04 Jan 2019 11:35:53 -0800 (PST) In-Reply-To: <1545107119-85376-1-git-send-email-jiayu.hu@intel.com> 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 Tue, 18 Dec 2018 12:25:19 +0800 Jiayu Hu wrote: > +.. note:: > + To use the GRO library, applications must guarantee that > + MBUF->l2_len/l3_len/l4_len/outer_l2_len/outer_l3_len and > + MBUF->pkt_len/data_len of input packets are set to correct > + values. > + This statement seems confusing to me since this is Generic Receive Offload, and receive buffers come from the poll mode driver. Aren't you saying that the PMD must set the correct values. If this is correct, then any PMD not doing so is buggy. And should be reported and fixed. If it is really buggy PMD's then the statement in the programmers guide is not the place to handle this kind of issue. Better to just shame the buggy drivers in the release notes for that NIC.