From patchwork Thu Mar 17 12:01:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wojciech Drewek X-Patchwork-Id: 12783944 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 A993DC433EF for ; Thu, 17 Mar 2022 12:05:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233414AbiCQMGv (ORCPT ); Thu, 17 Mar 2022 08:06:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233381AbiCQMGv (ORCPT ); Thu, 17 Mar 2022 08:06:51 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4587A1A6E79 for ; Thu, 17 Mar 2022 05:05:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647518735; x=1679054735; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=/UEnuXCrSN2AgWnR5cJ2BOkbfokoZMrbzdVHWDzfKhE=; b=bF7agiWBLvonwthZJSRvlEGcWE4q2CvP0wrEdjM3lXWh9yIm2zCrc/PM SYZ4J1S0Efc/cEIgsDd76QAoaV0sS1zgbsVhDdyQMrOUxTO3SbCqaYGyO WrpEcFbZYB7vvtfHalscEwvptYv0qmAzXbQe1TKa81mB4DhkfngMszXWu nalRyBUm2bnuBym03w7IUWBO89trGkA68mxNlfPvYeXp3+UcKavCD1VU6 eaSF4OEyVYan+o3jomqq/0uZbKDMYjkElIk9ZRfqh9AFFDNf/FB//7LAV 4JdGZQyW+POGhMs4MIomfToQpR3XUVMVh5D++9+YtToYV0JGh62CEdh7r w==; X-IronPort-AV: E=McAfee;i="6200,9189,10288"; a="281638558" X-IronPort-AV: E=Sophos;i="5.90,188,1643702400"; d="scan'208";a="281638558" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2022 05:05:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,188,1643702400"; d="scan'208";a="783814274" Received: from irvmail001.ir.intel.com ([10.43.11.63]) by fmsmga006.fm.intel.com with ESMTP; 17 Mar 2022 05:05:33 -0700 Received: from switcheroo.igk.intel.com (switcheroo.igk.intel.com [172.22.229.137]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id 22HC5WAI029827; Thu, 17 Mar 2022 12:05:32 GMT From: Wojciech Drewek To: netdev@vger.kernel.org Cc: dsahern@gmail.com, stephen@networkplumber.org, jiri@mellanox.com Subject: [PATCH iproute2-next v6 0/2] GTP support for ip link and tc flowers Date: Thu, 17 Mar 2022 13:01:41 +0100 Message-Id: <20220317120143.92480-1-wojciech.drewek@intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: dsahern@gmail.com This patch series introduces GTP support to iproute2. Since this patch series it is possible to create net devices of GTP type. Then, those devices can be used in tc in order to offload GTP packets. New field in tc flower (gtp_opts) can be used to match on QFI and PDU type. Kernel changes (merged): https://lore.kernel.org/netdev/164708701228.11169.15700740251869229843.git-patchwork-notify@kernel.org/ --- v4: updated link to merged kernel changes v5: restore changelogs, they were missing in previous version Wojciech Drewek (2): ip: GTP support in ip link f_flower: Implement gtp options support include/uapi/linux/if_link.h | 2 + include/uapi/linux/pkt_cls.h | 16 +++++ ip/Makefile | 2 +- ip/iplink.c | 2 +- ip/iplink_gtp.c | 128 +++++++++++++++++++++++++++++++++++ man/man8/ip-link.8.in | 29 +++++++- man/man8/tc-flower.8 | 10 +++ tc/f_flower.c | 123 ++++++++++++++++++++++++++++++++- 8 files changed, 307 insertions(+), 5 deletions(-) create mode 100644 ip/iplink_gtp.c