From patchwork Mon Mar 14 14:15:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tonghao Zhang X-Patchwork-Id: 12780188 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 EB47FC433EF for ; Mon, 14 Mar 2022 14:16:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239542AbiCNORI (ORCPT ); Mon, 14 Mar 2022 10:17:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231273AbiCNORH (ORCPT ); Mon, 14 Mar 2022 10:17:07 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7605219C12 for ; Mon, 14 Mar 2022 07:15:56 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id m11-20020a17090a7f8b00b001beef6143a8so14708202pjl.4 for ; Mon, 14 Mar 2022 07:15:56 -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=QHuV080a1M26G1DkAzwCuk0vosgeIuubIhEkCn3FFY8=; b=MvIfgX2ND/aUHxR8QyNofBViBb9fKyXpV0e9xU5o7YXzGkYo1ni3TZ9P8f6QxvMHIr hvsI458gUuge/2D0Jatjw/Hz5MDwP3nLpMyywgEfO0LIpfFs7bf09+1I33ncwMORhy2g ZUz78Jd5QKbWcUvfAYmdES9A9tTD8b6qmSYP8bF0+BgJJplX5N13O0WdhQnz88C2IU24 DeVHwp5jJG/gqku1aFZ6MbZCK2UxJMIwWI8AQEENiTjTCV2qpx3MoGKuVyk8PbjX6ygp h8X39o2UCi5aAGgdDF/7rstKmoSQVNEQAlcu/y4oVy3lvbjFiU3aJJmbYShy7z8Jyuqi bNlQ== 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=QHuV080a1M26G1DkAzwCuk0vosgeIuubIhEkCn3FFY8=; b=0UFFKbIq4NFUXYsC/+H3A0OP45aoyTwBwxqrhmBqxkgTEiRRtVpYjna2sH+TQbR+yN gOWdNAFT8ycMA/mgWxGVX7SxuteRuUK0BXcci1xGcWZFrq1RvxV2SntLV8rK1jCrG0yE 51Mu/6pt3OXtOGISEhPWEy+ceVQKf3TrUmGPyGfVvY31eaqpuIQwk7p3Yg1s21jpOGfH ARMUjJyK6iwmikIkavBOqEPYM7B7TRbBollWVA1eZA38zve7jergOce/SGjRaawSjGSn EOQ775g3cgLHse/owDEugP/3bBjzbaikCk7wLfl8brk8soNMe/+KxwvkeRglCmS5BGO/ TTwA== X-Gm-Message-State: AOAM532sQ5BfrxVaWqYsNelmyxwO1Bi4JDthm6+nA/8P1gkqmw7eFalB zxyphyuYdzrgkjGsM6znPMiN1uzQ0UCIRA== X-Google-Smtp-Source: ABdhPJyP2B0UuEuRBclDVcWbw+y3A+7JRQGhqyByR9DN3qT58avuA9irW7frnfWj/F+vjcHzChWBBw== X-Received: by 2002:a17:90a:bb0d:b0:1bd:3baf:c8b4 with SMTP id u13-20020a17090abb0d00b001bd3bafc8b4mr25653425pjr.15.1647267355671; Mon, 14 Mar 2022 07:15:55 -0700 (PDT) Received: from localhost.localdomain ([111.201.151.228]) by smtp.gmail.com with ESMTPSA id oa12-20020a17090b1bcc00b001bf430c3909sm22540430pjb.32.2022.03.14.07.15.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Mar 2022 07:15:55 -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 v10 0/2] net: sched: allow user to select txqueue Date: Mon, 14 Mar 2022 22:15:06 +0800 Message-Id: <20220314141508.39952-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(-)