From patchwork Thu Sep 8 01:23:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Nambiar, Amritha" X-Patchwork-Id: 12969556 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 1C2E4ECAAD3 for ; Thu, 8 Sep 2022 01:14:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229666AbiIHBOY (ORCPT ); Wed, 7 Sep 2022 21:14:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbiIHBOY (ORCPT ); Wed, 7 Sep 2022 21:14:24 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7022D2A4 for ; Wed, 7 Sep 2022 18:14:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662599663; x=1694135663; h=subject:from:to:cc:date:message-id:mime-version: content-transfer-encoding; bh=+BP7cnWq2QvZCeL1ZnAjpA44usfXMOqkBqXUe3F0GA8=; b=aO5+Pqm4txKpsxbXoDXaaSlKqXruOxrCRvhOHIS5f51giI4lAhAiOs8n n2en3sq7L4WrGRts8T8lIILcdEuuSq+4T4wZgirSFIbTn9eyS3Afmz4TQ /AOagRVLI5EgQhIxj9M+VQCcG+qADSocYxXVXJLei1Efnvmp1JSUguhPo sm6sBrXF6mF+3jGDz06VOJVmgKQYKvbCPj+WgqxSTOAp0ozGqVGDdQVqd NBFIC4SSnCJ5iwQbsPcASFIc1creJT+53G5mJY506AyiBHc36++JzX31L xJvMm73Dz39HcxKJAGiA/37CORSyUeEEuyE44FYoJlzJ110f/wq3beBEH A==; X-IronPort-AV: E=McAfee;i="6500,9779,10463"; a="297036360" X-IronPort-AV: E=Sophos;i="5.93,298,1654585200"; d="scan'208";a="297036360" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 18:14:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,298,1654585200"; d="scan'208";a="565743216" Received: from anambiarhost.jf.intel.com ([10.166.29.163]) by orsmga003.jf.intel.com with ESMTP; 07 Sep 2022 18:14:22 -0700 Subject: [net-next PATCH v2 0/4] Extend action skbedit to RX queue mapping From: Amritha Nambiar To: netdev@vger.kernel.org, kuba@kernel.org Cc: alexander.duyck@gmail.com, jhs@mojatatu.com, jiri@resnulli.us, xiyou.wangcong@gmail.com, vinicius.gomes@intel.com, sridhar.samudrala@intel.com, amritha.nambiar@intel.com Date: Wed, 07 Sep 2022 18:23:57 -0700 Message-ID: <166260012413.81018.8010396115034847972.stgit@anambiarhost.jf.intel.com> User-Agent: StGit/unknown-version MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Based on the discussion on https://lore.kernel.org/netdev/20220429171717.5b0b2a81@kernel.org/, the following series extends skbedit tc action to RX queue mapping. Currently, skbedit action in tc allows overriding of transmit queue. Extending this ability of skedit action supports the selection of receive queue for incoming packets. Offloading this action is added for receive side. Enabled ice driver to offload this type of filter into the hardware for accepting packets to the device's receive queue. v2: Added documentation in Documentation/networking --- Amritha Nambiar (4): act_skbedit: Add support for action skbedit RX queue mapping act_skbedit: Offload skbedit queue mapping for receive queue ice: Enable RX queue selection using skbedit action Documentation: networking: TC queue based filtering Documentation/networking/tc-queue-filters.rst | 24 ++ drivers/net/ethernet/intel/ice/ice.h | 15 + drivers/net/ethernet/intel/ice/ice_main.c | 2 drivers/net/ethernet/intel/ice/ice_tc_lib.c | 351 ++++++++++++++++++------- drivers/net/ethernet/intel/ice/ice_tc_lib.h | 40 ++- include/net/act_api.h | 1 include/net/flow_offload.h | 2 include/net/tc_act/tc_skbedit.h | 11 + net/sched/act_skbedit.c | 40 ++- net/sched/cls_api.c | 7 10 files changed, 376 insertions(+), 117 deletions(-) create mode 100644 Documentation/networking/tc-queue-filters.rst --