Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2173864rwd; Mon, 15 May 2023 08:11:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7f94vyuUuM90wLott4C3eOl4qLI9xcFJl/IbZkupy9tCWAkeVG8tbe3ewc7s394WLl3a+V X-Received: by 2002:a05:6a00:2289:b0:63f:120a:1dc3 with SMTP id f9-20020a056a00228900b0063f120a1dc3mr47079572pfe.0.1684163519112; Mon, 15 May 2023 08:11:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684163519; cv=none; d=google.com; s=arc-20160816; b=DgdE8QzXNiHA9xBiO30UsHcjpPA4Ep8pJ8y4v/BhIn1k1iFnAihdo2kOWaS/uHn7S4 13D4WmNRXUp/3mXQK6B5BAdC6ZeefVkJERdPJwhnCj96cre2oheYW2ZEkmVOehxgkjmA 0AgJQp+QkKpKB7qYdnYRFBZcjOAfNprEz/4tXtNiQj/G55IcFc5Ukt7CzgxUUZ2sz99+ TQuoG7c4kOJlcsuMh7+aUifaPWpYC19JSyP/S6ZES2DDMgDqEI4MhADITJzAHCunA6cA WPwdXYbXN1DrNxeThvxG4wnmOylzVBn91Qh6D1/N+byHZ679CCWQO4ThhVNlCUz4Wyh+ n/GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:to:subject:cc:user-agent:mime-version :date:message-id:from:dkim-signature; bh=jqAunJggVfMk8DVsWWYkCIQsfbXlahXMSDO8JBjiKzE=; b=zE5eHmbnZIMQO27nXsX2EURDjcT63AfIk+CMtVwLOTsbk5Osd9eCEwUJcImUjsDiFu RcPj0zJ5Tt9dxUCX1jOG3LwUYzT7qR8Ttx8cjeNfGJIsPfkJSpe7ZrnOglYO159c+aIb 7ibxF6vXYP6z7BAx5fi0Q8seLih5xqfBUGWnp8AEkWhMJvcF7M/zTwO/fGikXsctziJ4 L531SBttyo0zrbb5v0iIKusdYcjGqUVMy8jnW/yX9++VpqUmwmxqqYeVU9J3qm3JY87G XB23u40Y/eT+D5UjTiL+A1icSyo2MSnatUz2s2ogZ1D++8bWN1tWo7iYcu3PTPuaE8E+ xazg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DG5LXRu2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g13-20020aa79dcd000000b0063b8350bdb6si17594470pfq.23.2023.05.15.08.11.45; Mon, 15 May 2023 08:11:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DG5LXRu2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242136AbjEOPIX (ORCPT + 99 others); Mon, 15 May 2023 11:08:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242110AbjEOPIT (ORCPT ); Mon, 15 May 2023 11:08:19 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A24E1720 for ; Mon, 15 May 2023 08:07:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1684163251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jqAunJggVfMk8DVsWWYkCIQsfbXlahXMSDO8JBjiKzE=; b=DG5LXRu2c+AFvkUL6iJHFyECUOjfPpNjB+p5ZGJFjVpgU7F4WX3Ujne056f5zDhj91qiyl JDAT7SckMxyWv1LutsAyYwYzctazC1amzdt+Yybdws+e8CU+Sx9uM+nlq2yT7ooWxKr04t TskAMsjdqXfYYDoam2u6FXFgiVmS0l4= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-620-RpY46iqUPJOU9MuvkLD1BQ-1; Mon, 15 May 2023 11:07:24 -0400 X-MC-Unique: RpY46iqUPJOU9MuvkLD1BQ-1 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-94a348facbbso1607738266b.1 for ; Mon, 15 May 2023 08:07:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684163242; x=1686755242; h=content-transfer-encoding:in-reply-to:content-language:references :to:subject:cc:user-agent:mime-version:date:message-id:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jqAunJggVfMk8DVsWWYkCIQsfbXlahXMSDO8JBjiKzE=; b=cZ4mGOrWhpMOloyONB1f9IH7vEMbLAJpAEWhQdVUTTV3E0lxLUsmDmUwKO/IIGTgFJ TkIMm//nFSbvLRQNCIFrlBT7/WyWI0UNiA1l6gOD5KkCSK/hRLWMuguIoB41pvAZMbp4 plroLl56Y0U+einrERFfxme/3x3a6EukukQA4zDksvFHZLpildFsIq/HEA9nDx/umwjo oapz9MtP56vPpWKG/cWEJJYOZfnuJS8Tcm7D7BcIPOTAD8g60C9Pqbf04BMqYd5JdWqJ g9uJO4+FInjB0g6JOQtVxUbdlD5OuAHaiQ1d64VfBWhYyh3EjvGSe0pjNEyQeATdLTQJ ic4Q== X-Gm-Message-State: AC+VfDwPgwXkDGohXbAKhuSSvXWs1DaqwtwrKdNRLsSO2ldGxaatmyNW 6p7XV1IMbtnjhBW8hPhIzNKyVqQld7nR9WPls9E9FSvw/aGMdsCWC2QN8B9HYi2DmBYwl4XsynK XmcPAmJ6Q80CZbMl72t5IWBXj X-Received: by 2002:a17:907:d91:b0:933:4d37:82b2 with SMTP id go17-20020a1709070d9100b009334d3782b2mr31485003ejc.57.1684163242585; Mon, 15 May 2023 08:07:22 -0700 (PDT) X-Received: by 2002:a17:907:d91:b0:933:4d37:82b2 with SMTP id go17-20020a1709070d9100b009334d3782b2mr31484980ejc.57.1684163242248; Mon, 15 May 2023 08:07:22 -0700 (PDT) Received: from [192.168.41.200] (83-90-141-187-cable.dk.customer.tdc.net. [83.90.141.187]) by smtp.gmail.com with ESMTPSA id l17-20020a170907915100b0095004c87676sm9682583ejs.199.2023.05.15.08.07.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 May 2023 08:07:21 -0700 (PDT) From: Jesper Dangaard Brouer X-Google-Original-From: Jesper Dangaard Brouer Message-ID: Date: Mon, 15 May 2023 17:07:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Cc: brouer@redhat.com, bpf@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Jakub Kicinski , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Jiri Olsa , Jesse Brandeburg , Tony Nguyen , Anatoly Burakov , Alexander Lobakin , Magnus Karlsson , Maryam Tahhan , xdp-hints@xdp-project.net, netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND bpf-next 10/15] ice: Implement VLAN tag hint To: Larysa Zaremba , Stanislav Fomichev References: <20230512152607.992209-1-larysa.zaremba@intel.com> <20230512152607.992209-11-larysa.zaremba@intel.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/05/2023 15.41, Larysa Zaremba wrote: >>> + *vlan_tag = ice_get_vlan_tag_from_rx_desc(xdp_ext->eop_desc); >> Should we also do the following: >> >> if (!*vlan_tag) >> return -ENODATA; >> >> ? > Oh, returning VLAN tag with zero value really made sense to me at the beginning, > but after playing with different kinds of packets, I think returning error makes > more sense. Will change. > IIRC then VLAN tag zero is also a valid id, right? --Jesper