From patchwork Fri Dec 17 08:01:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tonghao Zhang X-Patchwork-Id: 12683863 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 08174C433F5 for ; Fri, 17 Dec 2021 08:01:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231717AbhLQIBV (ORCPT ); Fri, 17 Dec 2021 03:01:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbhLQIBU (ORCPT ); Fri, 17 Dec 2021 03:01:20 -0500 Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62683C061574 for ; Fri, 17 Dec 2021 00:01:20 -0800 (PST) Received: by mail-qv1-xf36.google.com with SMTP id m17so1638109qvx.8 for ; Fri, 17 Dec 2021 00:01:20 -0800 (PST) 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=JlrwUShgRc0x8npI+6jFpNiwhQX11weXPtq/xc2rE2w=; b=Sn6n9DHD4U2Mrgv+1CBA1VHmw06uIKrO/dz2UmbFyre+05FK0rfws4P1m5pv7C83S6 oM3eM3tefKfyanl2ujlz7h1b5d4s5xD0hG8fXiqPR70m+ZsxklnKsCb2GX2l+QKdyvHC OhcGTOdvq0rWRu8KGrmyXwjv0oOgQaS1IF3MoC1BvkKv7OsDRnNZJL35LrSX5BMrA3nl x6fOkjKxwXGaOcC9tRglhJG7dTwJnaXpA9456YeGnH4FtDAdrSXe2yN7RSLyaqM6f6hp dGjRUw2BymaIXb1Z+hdYg6wWzyFUC41H4eFoJekzWIwp4db4gdMqZfMoBZkrGnnbdrqC 3uqg== 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=JlrwUShgRc0x8npI+6jFpNiwhQX11weXPtq/xc2rE2w=; b=61hQrTS4htS8DxhdgDmpCP5WGX/E71mm2Xgwm4J4HBKYXb79a2+5fq5b+8pDwBZTf9 bS75exb2M8D2arYEzSrY6/rdlu+dQfgYPCqJvbmtw+qT2qG60EeNtkNr0mo0kNvd2hPB 6KtXzImRcqfEKojP7tVeDz/6TMv1DHymOEQ80MJ+YBQNQNU1PYo6SU1l9sLPrCLUprmI uFllX93AGnuosDxkBhIl99ywY9TsetM2FTXeg9oZLIjdewECMjn0u0Uvld8RDMiUGJdi /uqKeMOB3QNatJ7gTxbNx8SpXQXwlkCNij7gjN8/eYbesiPip6HchfOBsvZJeNO1Bj8W SZGg== X-Gm-Message-State: AOAM5322anb6kw6OMZ9/kfBvToM9QWDXiwK96ujX9Y+PVGIU2zFulst5 XbYCYNPfZ4WGIbw+Klm7TWxUqGx+uUShLA== X-Google-Smtp-Source: ABdhPJzPvQX89xsvZNFc7SejuKPIcmmiiDWRZkH/BFNE/YmkE6URqhtz8H3tnkqGeLss9Y8s64uxxg== X-Received: by 2002:a05:6214:c4f:: with SMTP id r15mr1297454qvj.22.1639728077882; Fri, 17 Dec 2021 00:01:17 -0800 (PST) Received: from localhost.localdomain ([111.204.182.106]) by smtp.gmail.com with ESMTPSA id bk25sm4239922qkb.13.2021.12.17.00.01.10 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Dec 2021 00:01:17 -0800 (PST) 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 v4 0/2] net: sched: allow user to select txqueue Date: Fri, 17 Dec 2021 16:01:01 +0800 Message-Id: <20211217080103.35454-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, classid, cpuid to select txqueue. Tonghao Zhang (2): net: sched: use queue_mapping to pick tx queue net: sched: support hash/classid/cpuid selecting tx queue include/linux/netdevice.h | 24 ++++++++ include/net/tc_act/tc_skbedit.h | 1 + include/uapi/linux/tc_act/tc_skbedit.h | 8 +++ net/core/dev.c | 7 ++- net/sched/act_skbedit.c | 83 ++++++++++++++++++++++++-- 5 files changed, 117 insertions(+), 6 deletions(-)