Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7870137rwl; Thu, 23 Mar 2023 09:35:51 -0700 (PDT) X-Google-Smtp-Source: AK7set92HdXihQbbJMdjZ47pm97PEuifhVLLi08nr6+UN8fFrOYOexnHrY7kg6aSkl+k9uUC4s8U X-Received: by 2002:a17:906:d8c7:b0:88d:ba89:1837 with SMTP id re7-20020a170906d8c700b0088dba891837mr6504366ejb.8.1679589351150; Thu, 23 Mar 2023 09:35:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679589351; cv=none; d=google.com; s=arc-20160816; b=AXzSz9flixXw+gwgfxZ2sEcYjOSsbNOUQu0rtpYHXiotFlfQWIMB+MPdUCIWPvvNiR 5KFi3Dgek2E5pkdQkZSOS91uoeyQYTdh9EAw8HPrsqlcoTBhhK/z2Fe0lajWQDj4AAaY 1yX1qUWPkIyP61MeNC16ReowzTWteVETKUSyanFYagprd0VuC8G80fu3RLpmK8aeS0gX LG+gwFc1a+am3qv1UnPvww4XIWv5lbQudLKgcBt96uIk8sUjOyon2oNYR1GxSde+QtwA h86ZGoD0q2bfmfZfsJ/Lj5YEhXuW4JB15KFCPGNRJSSdCbU02Ljfd7pNaKChnVz2k0xy CA8w== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=vNEodOLpwGq1qEFMa9cE+bSHiYqipnFFUac1/whHCvU=; b=nrmYVCgPIANwBhI3afrNCDTiRFPII1sxJYulyBuFbJ/1eakux2CduyN8Wy84HNaDWW iIplSguLGHKFZ2iiIwrkoYsoucbOIiUQCo80ZDoNVjIXU4LL78/XRF+BaifvC3POD37h 9KsIkKCBZJGIeUg3XttWh9nLiepbZnCVH4Ldbprfu11OS5Yj8peb7z+kq7H5NS8KhyFS r4rSrfjOij0dyblLbyY017c2mrDVzeOJA+IJZ96r06MTF4ZJYB/Sx0kG5pJ+1Rwd0uCj yrzXSE9i1Qv3YkV0kHwlOcJFA97cgu+TQHJu9YiDsS88HxyAyt9HQ0pjaqXwN1DcTsJF zb9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MZ84MofQ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020a1709066b1000b009334da7a280si12397618ejr.693.2023.03.23.09.35.26; Thu, 23 Mar 2023 09:35:51 -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=@gmail.com header.s=20210112 header.b=MZ84MofQ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231777AbjCWQbu (ORCPT + 99 others); Thu, 23 Mar 2023 12:31:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232034AbjCWQbc (ORCPT ); Thu, 23 Mar 2023 12:31:32 -0400 Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84A2036FFE; Thu, 23 Mar 2023 09:30:54 -0700 (PDT) Received: by mail-qt1-x829.google.com with SMTP id g19so2090983qts.9; Thu, 23 Mar 2023 09:30:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679589053; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=vNEodOLpwGq1qEFMa9cE+bSHiYqipnFFUac1/whHCvU=; b=MZ84MofQJKn1V+IhgGddG62wUqrXfSw8i4xTv7RFRRuuWu0u01NQt0v5vdXkOljnyA JpDDIE96DBxpckg6BYTvZzYVOev7XydCbdDgiutfJkFX6MPawu+q3BYawygNKLA4llQh NXn0O1N3baAo92RA/eCWDvQ3sOc10aW6b+fNUWk3LvUJfB6z6cy+EipfOI/Vf0HnvN/T 8eKJB5YAOzjPtTheglmgrPDriLwqXpySDWSdiic8573/e3J1SBSRxWlVTFChngfpDBOG k685mpn3oyisF/jQH1VHdNshDnJNEySRiOhTf60WUqW1kka7xxcW5+a3GiUPYcmoDbwg vmjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679589053; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vNEodOLpwGq1qEFMa9cE+bSHiYqipnFFUac1/whHCvU=; b=z4xFalTT5cKmMNW4LQXINHdvEhNmf7paLzagRZVCxkOrgpKRiIorSSyJ4MYwNij7EI 786FpgpB7OJWq9GVEKlW/N/LTjVZCfylsEQESJrQMfuzEyaYPgDwgj+EPk+3403dOy7H 4G1NO59GEs23DPhhmzZg/REun2Ygbz9jtVp9C7p7l72Z1/MF6kIgbttq54YgyLc7naEK nFRHgDJMc5jwF4U/Hsya7e8lrbXzx9Y23gOvpE5XLqdyy7i4Dt+lsqwcZpJwCYwDQP55 8oZYUNT81nx8zi89u8TvbVnKdcum9yyZa9daOfnLgZf8b8+n6pzTduaR4Mid8sQKCqQy xjRA== X-Gm-Message-State: AO0yUKVMgbQfQcuuKjhCuvhDHbuK6TiuTvc7+aH9/0iGsW1yrQEXcVMc d9Ps0COhQ0wg0xQlFn9GCtI= X-Received: by 2002:a05:622a:242:b0:3bf:da83:f8d6 with SMTP id c2-20020a05622a024200b003bfda83f8d6mr12333398qtx.28.1679589053656; Thu, 23 Mar 2023 09:30:53 -0700 (PDT) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id q17-20020a05620a025100b00746b3eab0fdsm2831876qkn.44.2023.03.23.09.30.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Mar 2023 09:30:53 -0700 (PDT) Message-ID: Date: Thu, 23 Mar 2023 09:30:45 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH net-next 1/9] net: vlan: don't adjust MAC header in __vlan_insert_inner_tag() unless set Content-Language: en-US To: Vladimir Oltean , netdev@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , linux-kernel@vger.kernel.org References: <20230322233823.1806736-1-vladimir.oltean@nxp.com> <20230322233823.1806736-2-vladimir.oltean@nxp.com> From: Florian Fainelli In-Reply-To: <20230322233823.1806736-2-vladimir.oltean@nxp.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 3/22/23 16:38, Vladimir Oltean wrote: > This is a preparatory change for the deletion of skb_reset_mac_header(skb) > from __dev_queue_xmit(). After that deletion, skb_mac_header(skb) will > no longer be set in TX paths, from which __vlan_insert_inner_tag() can > still be called (perhaps indirectly). > > If we don't make this change, then an unset MAC header (equal to ~0U) > will become set after the adjustment with VLAN_HLEN. > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian