From patchwork Wed Mar 23 02:14:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tonghao Zhang X-Patchwork-Id: 12789369 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 46A81C433F5 for ; Wed, 23 Mar 2022 02:15:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241114AbiCWCQ2 (ORCPT ); Tue, 22 Mar 2022 22:16:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230217AbiCWCQ1 (ORCPT ); Tue, 22 Mar 2022 22:16:27 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 955C970051 for ; Tue, 22 Mar 2022 19:14:58 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id c23so292377plo.0 for ; Tue, 22 Mar 2022 19:14:58 -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=GJaag9cSgw7muUo3OixT7ynufbhcQjgiAaGWcgDKm88=; b=GjT8Nau/uLrUMuRYmt1yzBeAKvlzrwEaLCFVop6Ey8TEoru47ulLm/AcrsTyWOHy1A 8uhwfg280uLfyMh6M5aOvzpta5YlD8D5FQF/d9xB4GWiOGHVYT0W/yPZBMT2ht1udBLU mpAH44iRCiKPexafXvWWHai8C39Fcg+nCakK6RxsvQWnP+GjcJNyCqo9iJ8KSWXI7svq 4jk+0c6/0lOTxBiAOK3U4DqnyAdSJW3XQoiqTx7lvjl/++29SQ4oq1hafWnMDzMGzb+5 GC3KNT0JMHLX4qRrQrjfBiFWUvTDGxDXJu86RD96gkgI/9XIp7e05c1+ri5k8uSwVRrK BzgA== 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=GJaag9cSgw7muUo3OixT7ynufbhcQjgiAaGWcgDKm88=; b=fANmtdO0Gj7702Jf3yw6IjDoAe2VVLA/aQFXxcgHUTYl9QpSF2JdqsKgyzzsKAGCa8 Eif3VRI+S+Qxrm6uVZTf6BPv2hMeiqgd3TdzCfhFbADhX6fOsVw3LHKtidmGxGD9rH0T y3o3s/IsuSf7uLGn+t4jkGWV8nfuRetccIDh/rQua96bdzFVi1yerFLyPt3BPBDJ71GA rJstpHwk0P9w13HklP3JgHEaA3x38wnzxueIovsosdHfBlrjzfESRGRy+eVvoRDo3EcP E09ZH4pFwX9rmSipCZ8DcLCTyMKDXdkCAbQ/3mQpj1gopFws2Zf1A08fivjZsoTEslLh ilRA== X-Gm-Message-State: AOAM533bPP1HvZa2fZvVzyO8x5Pr7nduGTAjAlpIPE9ZLa1o/MUj7OGP rbUHSFUqhSjfcaE/o9OU9pBbdTIuYhWYpA== X-Google-Smtp-Source: ABdhPJy6ooTu3eTIUfuNNKFqxoSDfeiXHiabKWjlqXtkm4GfuSfMJtDS66UzI7IWhj//mR+k5gJ/yg== X-Received: by 2002:a17:90a:b008:b0:1c7:8810:a08d with SMTP id x8-20020a17090ab00800b001c78810a08dmr1300261pjq.181.1648001697772; Tue, 22 Mar 2022 19:14:57 -0700 (PDT) Received: from localhost.xiaojukeji.com ([111.201.151.228]) by smtp.gmail.com with ESMTPSA id t71-20020a63784a000000b00380a9f7367asm19332580pgc.77.2022.03.22.19.14.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Mar 2022 19:14:57 -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 , Arnd Bergmann Subject: [net-next v11 0/2] net: sched: allow user to select txqueue Date: Wed, 23 Mar 2022 10:14:45 +0800 Message-Id: <20220323021447.34800-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(-)