From patchwork Mon Mar 22 20:58:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ioana Ciornei X-Patchwork-Id: 12156165 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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT 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 09507C433DB for ; Mon, 22 Mar 2021 21:00:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C3951619A0 for ; Mon, 22 Mar 2021 21:00:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230223AbhCVU77 (ORCPT ); Mon, 22 Mar 2021 16:59:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230114AbhCVU7X (ORCPT ); Mon, 22 Mar 2021 16:59:23 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88C52C061574 for ; Mon, 22 Mar 2021 13:59:23 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id j3so21012371edp.11 for ; Mon, 22 Mar 2021 13:59:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Wxv9iUavjoA7myo0v2QjEUO2tzYld2L/O7j3H4/kka4=; b=jo41hw6F5RPvltp+vCy/FKSOryJfRRMiu4YgZZ5xBsnBvw7nejqqYXzf5bWfUVgVoE H+6luUL8CU/2q7GalGA4XZy4DNq6BINboW/FkhDNrnumECl8r63MU/T1t6J6cqUoSiJN 3jCMKdAv5jg3JC5d83WgeKtKsypwo6bMONoa8V1tat34Scv/bgGji0fYMrtlcaYOKI2w 5XXnrE6W1NeKpyaUm01NY5hKZbW3rJcDzZdRmqEgcEkMQZiKmtPfCG877w+pWF1flU5I sVX27GxuFVp4jAqwvDX2AIZZRwPgttKwlbcMqRbEDxpOew5RcR35xMkuzYeigLlFsO25 YWzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Wxv9iUavjoA7myo0v2QjEUO2tzYld2L/O7j3H4/kka4=; b=fhjhyCeaOKGwGVEHjJ8ZsgObG0buxxD1Ug5rqIsnmjmcgIkTGuutXfeeHH1xVcbUoG lCt8SNoQecL/VGqEf0mo/smIuSWyoS27RfS33Pq2+qEwAQBoRSTts601W7a1V9yhSILP pn0qBhXeHjq1oTGjkAkHyfqSJv5+xaMMo8SPAHsVwXiZUioQBT0G6Tz5LD+xRyq7mz50 8goWmwrGcr5QU/OSKlwSIX5I1v/YiQBPl2o+q8WB7e9q+v67M6cHOdmNhXCAfcVnKWqT SakuW72FbhKcBqPuSagtOyXSR5uqA4vtATa0P8/wCq/KogU8w8AudoZjlcEKN5IokfUr 98MA== X-Gm-Message-State: AOAM5320jPBpgfPliEawlWeghXuLqhLTU19VGfZMIX3iLPtPPb8Wr03/ rqwl59H9AEycF/LnYdXv5tk= X-Google-Smtp-Source: ABdhPJxtTH3qo4u6RoXNMIW0ZOXbi03MphZ3jre7hzQwL++f94I3a4F1zLqLKg1eXTK+/N9upMjNGw== X-Received: by 2002:a05:6402:4242:: with SMTP id g2mr1432117edb.329.1616446762322; Mon, 22 Mar 2021 13:59:22 -0700 (PDT) Received: from yoga-910.localhost (5-12-16-165.residential.rdsnet.ro. [5.12.16.165]) by smtp.gmail.com with ESMTPSA id v25sm11621074edr.18.2021.03.22.13.59.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Mar 2021 13:59:21 -0700 (PDT) From: Ioana Ciornei To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: andrew@lunn.ch, f.fainelli@gmail.com, olteanv@gmail.com, Ioana Ciornei Subject: [PATCH net-next 0/6] dpaa2-switch: offload bridge port flags to device Date: Mon, 22 Mar 2021 22:58:53 +0200 Message-Id: <20210322205859.606704-1-ciorneiioana@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Ioana Ciornei Add support for offloading bridge port flags to the switch. With this patch set, the learning, broadcast flooding and unknown ucast/mcast flooding states will be user configurable. Apart from that, the last patch is a small fix that configures the offload_fwd_mark if the switch port is under a bridge or not. Ioana Ciornei (6): dpaa2-switch: move the dpaa2_switch_fdb_set_egress_flood function dpaa2-switch: refactor the egress flooding domain setup dpaa2-switch: add support for configuring learning state per port dpaa2-switch: add support for configuring per port broadcast flooding dpaa2-switch: add support for configuring per port unknown flooding dpaa2-switch: mark skbs with offload_fwd_mark .../ethernet/freescale/dpaa2/dpaa2-switch.c | 214 ++++++++++++++---- .../ethernet/freescale/dpaa2/dpaa2-switch.h | 3 +- .../net/ethernet/freescale/dpaa2/dpsw-cmd.h | 10 + drivers/net/ethernet/freescale/dpaa2/dpsw.c | 27 +++ drivers/net/ethernet/freescale/dpaa2/dpsw.h | 25 +- 5 files changed, 225 insertions(+), 54 deletions(-)