Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BAAAC433DB for ; Sun, 14 Feb 2021 01:24:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 60F3864E3F for ; Sun, 14 Feb 2021 01:24:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229741AbhBNBYD (ORCPT ); Sat, 13 Feb 2021 20:24:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbhBNBX7 (ORCPT ); Sat, 13 Feb 2021 20:23:59 -0500 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D126FC061756 for ; Sat, 13 Feb 2021 17:23:18 -0800 (PST) Received: by mail-ot1-x335.google.com with SMTP id c16so3002032otp.0 for ; Sat, 13 Feb 2021 17:23:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=rJ0gqLaRcemdUL5hbSjMewSKAw+PcBPtMOLL8HwEV6E=; b=bpI+Hpd3jT60AH+PMWTJLrmdhsSH6wbrtyXiillajSdRb9KcHSgu5L1ns0EkHU4KmN jBXRvUSrLKD6GEfPy5b4XIFirQwOxA4JEc172DZRm83iPD6mCfhilLVn/SWXUOdUaugH xzT7iMfI0rc57spbvOVzgx/tAqxSgIc0S6Dbgc9ZbWlOSeLsdcrSN1aGRcd0aZ1TqZ5x E05QuZIluy8HoVkfs1Bue3WqmRkGZ+U8yK1bPx6x4FkeMECbRCSXquj1/grflh1aLVup 3ECX+fzMj3H91kOhQl8uePVUNDJjNnhwGKJS2shCm0xO72fa85m2A3A7kwWaJ/Xftk2t hikQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=rJ0gqLaRcemdUL5hbSjMewSKAw+PcBPtMOLL8HwEV6E=; b=iSiiHekBQdG+eaWjgEhMkgaG73aqZvK09ipGuKdiEPBNGABxSbDQFIuMC0q+RD8tks YzKLhZjnMCeGrewO1ouhg2wiMhxs/z/YK2fzTOcSmqkwHnaK9TBjBGGZ+Fhul+9EPtuL 8GqGkduJyAbrCPmjK+WAkP25pRNdwOgTrJGPyNJ22HM0AxgE1x55IebWKBgUgO4EcWoo AjjK+CFv27K1wZunYypdzDK2xzkXA+pQldel7rY9pKUzi255tuKqZ3KYNqRaQLzgfg6Z +EOjTZHiquOubLlSGVU1DgJBYHIfGEsgG5Den4Lj5/bjoofG0sUyueHbla9LrVNb+zat poJQ== X-Gm-Message-State: AOAM530SpAHNKCvAk1VUe3tlFD3NOWppWYkVg1EHP5CiJI07zhTWKI3+ QDnwo51A6DN7SzVq9hTGRQ4= X-Google-Smtp-Source: ABdhPJwMBr4+Cm4cLDNDysfukgdtjMX+7IeUG/g3tFS6keZuWgOwxNPwbieHEFZq8baIW1zDoZR9QA== X-Received: by 2002:a9d:5552:: with SMTP id h18mr6913113oti.304.1613265798264; Sat, 13 Feb 2021 17:23:18 -0800 (PST) Received: from ?IPv6:2600:1700:dfe0:49f0:e93c:cbea:e191:f62a? ([2600:1700:dfe0:49f0:e93c:cbea:e191:f62a]) by smtp.gmail.com with ESMTPSA id z8sm1956061oib.36.2021.02.13.17.23.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 13 Feb 2021 17:23:17 -0800 (PST) Subject: Re: [PATCH v2 net-next 06/12] net: dsa: tag_ocelot: avoid accessing ds->priv in ocelot_rcv To: Vladimir Oltean , "David S . Miller" , Jakub Kicinski , netdev@vger.kernel.org Cc: Andrew Lunn , Vivien Didelot , Richard Cochran , Claudiu Manoil , Alexandre Belloni , Vladimir Oltean , Maxim Kochetkov , UNGLinuxDriver@microchip.com References: <20210213223801.1334216-1-olteanv@gmail.com> <20210213223801.1334216-7-olteanv@gmail.com> From: Florian Fainelli Message-ID: Date: Sat, 13 Feb 2021 17:23:14 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210213223801.1334216-7-olteanv@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 2/13/2021 14:37, Vladimir Oltean wrote: > From: Vladimir Oltean > > Taggers should be written to do something valid irrespective of the > switch driver that they are attached to. This is even more true now, > because since the introduction of the .change_tag_protocol method, a > certain tagger is not necessarily strictly associated with a driver any > longer, and I would like to be able to test all taggers with dsa_loop in > the future. > > In the case of ocelot, it needs to move the classified VLAN from the DSA > tag into the skb if the port is VLAN-aware. We can allow it to do that > by looking at the dp->vlan_filtering property, no need to invoke > structures which are specific to ocelot. > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian