From patchwork Fri Apr 15 16:40:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tonghao Zhang X-Patchwork-Id: 12815190 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 350CFC433EF for ; Fri, 15 Apr 2022 16:41:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355877AbiDOQn2 (ORCPT ); Fri, 15 Apr 2022 12:43:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355882AbiDOQnZ (ORCPT ); Fri, 15 Apr 2022 12:43:25 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 514DCC6F0C for ; Fri, 15 Apr 2022 09:40:57 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id k62so1606100pgd.2 for ; Fri, 15 Apr 2022 09:40:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LYBno9lyd6r1F2/ynsVFHAxdkYAcEZvAmA6QRq3yP6Y=; b=dQbKW6R+02RgO99V3d6ra8hOI0TSRcecd21i8E5N8sOsHUOUNfTRenahp1S73I0gI6 0ELxoR2JEyVdrxEBRAHKdmuKHBxZwdP3vs1sT84qdhSgD99BXUvg/cDGhgyTR6vTYY5b IGapNkRDnAS0rD9gj0Qfx969biUuCHs1wiErZ37kXPKVHmFX9XPeGGpDBtFteZblItTw P69OF+kA3g1nYUKabmu8/Wiy0Rl/76eUlqjMefgAajoWJ0DLSMsAFaROv15HKCZ9c+e2 4USDvTAEuAtZHExSUt5SdixAfpin5Rs8c6G4S1v6cnGph5brDGsCjubHe8x/nSPDToZ8 R88Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LYBno9lyd6r1F2/ynsVFHAxdkYAcEZvAmA6QRq3yP6Y=; b=tFlYidc0HkXIi7Fn8bELr02Em9yHGDLlZuytFBui0YZs3iGqSnhXEGt3t+5vxeu5mi pQ5awK1X5Rx9i9IPkzIkxhR4eFnHK4FX5LJWsYgAaqHR/X7UrTiS+kNy7sMAw3h+HdBd BwwGs7DcFWYUixRfR02p7hLjPtDabZZ6kRxMFfeqwTIfjaV9uxAlgAxRbPxMuczNaqzX c3o/0+RpFgqjZtB25+ASCZ5axkdQLw3WTyWUP4eA1oas2vS4UOP40NyVOun1GaP8m/n/ bzncKGvMGC+wZk11WshUUyYKOHb+4gT9FtnFHyhCsGeLY2cf6VTkdDQeSWLW8hGOWT2H rX3w== X-Gm-Message-State: AOAM533MFqEGqiUSRWxyVw7vS5TDMbvIwK0QirDRkEnw16bWknW/HoDr cT6nX5xq/5uzXnnhaeI8TVz1/NaajiOKfY4g X-Google-Smtp-Source: ABdhPJyFIUJPIIL5DteY80DiEM6EmN+11pHOKaaovpt1ocAiny7b9v/IXWxLtkpFjogfDW3Z0+0ZCQ== X-Received: by 2002:a05:6a00:124f:b0:4fb:37ad:16d3 with SMTP id u15-20020a056a00124f00b004fb37ad16d3mr20727124pfi.14.1650040856519; Fri, 15 Apr 2022 09:40:56 -0700 (PDT) Received: from localhost.localdomain ([111.201.148.136]) by smtp.gmail.com with ESMTPSA id w123-20020a623081000000b005056a4d71e3sm3322171pfw.77.2022.04.15.09.40.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Apr 2022 09:40:56 -0700 (PDT) From: xiangxia.m.yue@gmail.com To: netdev@vger.kernel.org Cc: Tonghao Zhang , Jamal Hadi Salim , Cong Wang , Jiri Pirko , "David S. Miller" , Jakub Kicinski , Jonathan Lemon , Eric Dumazet , Alexander Lobakin , Paolo Abeni , Talal Ahmad , Kevin Hao , Ilias Apalodimas , Kees Cook , Kumar Kartikeya Dwivedi , Antoine Tenart , Wei Wang Subject: [net-next RESEND v11 0/2] net: sched: allow user to select txqueue Date: Sat, 16 Apr 2022 00:40:44 +0800 Message-Id: <20220415164046.26636-1-xiangxia.m.yue@gmail.com> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Tonghao Zhang Patch 1 allow user to select txqueue in clsact hook. Patch 2 support skbhash to select txqueue. Tonghao Zhang (2): net: sched: use queue_mapping to pick tx queue net: sched: support hash selecting tx queue include/linux/netdevice.h | 3 ++ include/linux/rtnetlink.h | 1 + include/net/tc_act/tc_skbedit.h | 1 + include/uapi/linux/tc_act/tc_skbedit.h | 2 + net/core/dev.c | 31 ++++++++++++++- net/sched/act_skbedit.c | 55 ++++++++++++++++++++++++-- 6 files changed, 88 insertions(+), 5 deletions(-)