get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/133366/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 133366,
    "url": "http://patches.dpdk.org/api/patches/133366/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231026071229.300162-3-getelson@nvidia.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20231026071229.300162-3-getelson@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231026071229.300162-3-getelson@nvidia.com",
    "date": "2023-10-26T07:12:21",
    "name": "[v7,02/10] net/mlx5/hws: support creating of dynamic forward table and FTE",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "adbf496d13b02a7810d7930029f1a1a8afff91c3",
    "submitter": {
        "id": 1882,
        "url": "http://patches.dpdk.org/api/people/1882/?format=api",
        "name": "Gregory Etelson",
        "email": "getelson@nvidia.com"
    },
    "delegate": {
        "id": 3268,
        "url": "http://patches.dpdk.org/api/users/3268/?format=api",
        "username": "rasland",
        "first_name": "Raslan",
        "last_name": "Darawsheh",
        "email": "rasland@nvidia.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20231026071229.300162-3-getelson@nvidia.com/mbox/",
    "series": [
        {
            "id": 29992,
            "url": "http://patches.dpdk.org/api/series/29992/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=29992",
            "date": "2023-10-26T07:12:19",
            "name": "net/mlx5: support indirect actions list",
            "version": 7,
            "mbox": "http://patches.dpdk.org/series/29992/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/133366/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/133366/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 7A46C43204;\n\tThu, 26 Oct 2023 09:13:04 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 9252040697;\n\tThu, 26 Oct 2023 09:13:02 +0200 (CEST)",
            "from NAM11-DM6-obe.outbound.protection.outlook.com\n (mail-dm6nam11on2089.outbound.protection.outlook.com [40.107.223.89])\n by mails.dpdk.org (Postfix) with ESMTP id 1413640697\n for <dev@dpdk.org>; Thu, 26 Oct 2023 09:13:01 +0200 (CEST)",
            "from DS7PR07CA0017.namprd07.prod.outlook.com (2603:10b6:5:3af::14)\n by CH2PR12MB4183.namprd12.prod.outlook.com (2603:10b6:610:7a::24) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.33; Thu, 26 Oct\n 2023 07:12:59 +0000",
            "from CY4PEPF0000EE38.namprd03.prod.outlook.com\n (2603:10b6:5:3af:cafe::c9) by DS7PR07CA0017.outlook.office365.com\n (2603:10b6:5:3af::14) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.22 via Frontend\n Transport; Thu, 26 Oct 2023 07:12:59 +0000",
            "from mail.nvidia.com (216.228.117.161) by\n CY4PEPF0000EE38.mail.protection.outlook.com (10.167.242.12) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.6933.15 via Frontend Transport; Thu, 26 Oct 2023 07:12:59 +0000",
            "from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com\n (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Thu, 26 Oct\n 2023 00:12:51 -0700",
            "from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com\n (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Thu, 26 Oct\n 2023 00:12:48 -0700"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=RdCNLyNPv6PwW50WM4g/ubG1X0CszudzCAsFKdEAKYmhL10MQv42CajsD8gBR+F7b8gpS4I9FUfBn0JWqP1XQFWbXtkI8YE4LPAeKy22SbhaoihH+RVRiSE9x8p8oLCLXdlG9DudC95tIR1A8Z4d61Sa0g19ewO+ST+Fp8dVHYXM6BrEy6H+fWAS0SwJKWyHzV5CyK3HpRYC7RJDuPUyMqX38PC4wAmd65NNrywvBiuG+3BCBnJstek6vguNKG9tc5BvE69a8vYNNW9nl2uFJ7S/5U6neDZw5905alnXlVOnUA5ejEj5zklo783yZwt0Qf2H3C9+H1mAKFfi44c2Ag==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=Dx2/dx7WdjJtr18fqSPsnkKT/rgSR7OCIyUC+iNT+Xw=;\n b=Cdz0/jpg4Tkz5UnfSlpmc/a/9Hld5UMBLX0TeP06vgkwuc1rBugFz24Tt5p78k9IzNLc9M8v3Tjvpnzr0wcOqov5LAd5P6psNVGyOklVZLbhgGJMpVCgW5Ed+z3kwg8cBZ14IJVnHha6o9ubQT6oVPD0DCXNBloQFPnYk7aAsGZGQSfW0YBmJN6Zs3iu4zmBHBjA8G+022uwd+vlqbaVZt43gkSdCrJQRR4ADkBtH4j7U3h7YEy7xEq2JIXvMAgtKfJYgpz9TbAmeLGlhI+ZKYgJtpRJLTVHZCKZQWLDObv4NBHUS1tG6csun6f+mTMA/SSLC6yr8E5vLuWp+59GTg==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 216.228.117.161) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com;\n dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com;\n dkim=none (message not signed); arc=none (0)",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com;\n s=selector2;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=Dx2/dx7WdjJtr18fqSPsnkKT/rgSR7OCIyUC+iNT+Xw=;\n b=FvnTb5FWiEkx/riGRY11k4/XqkeP6BH3Kz/E8rmn8wGvTSvHaSvCCNxgTuGotnzz+i9V2un6z6KH9LxHpvmJlHGfaKNvYIKOlIqykI6/fBqtfugVJ+oKecugKg62O5OLxgu/zKv6JI43G7eggqshN6k5etl0t9nzG8cNwtOJ0AhyNi9/kY1YKI89DnaTDZmghfOzA/6YYvjZjGUbBeB37MeB7Anjhyo79wQa7YwrGQUaFJSMB/fFJ3t3SRHgLj4AC9+TNP2eCK6Ib++YM7evNZW8irbG/80Oq3IQ3DtAr1VyT15WsUFHhfHznmK7B9x2JJinUzG313t+U5RUkX/6dg==",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 216.228.117.161)\n smtp.mailfrom=nvidia.com;\n dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=nvidia.com;",
        "Received-SPF": "Pass (protection.outlook.com: domain of nvidia.com designates\n 216.228.117.161 as permitted sender) receiver=protection.outlook.com;\n client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C",
        "From": "Gregory Etelson <getelson@nvidia.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<getelson@nvidia.com>, =?utf-8?b?wqA=?= <mkashani@nvidia.com>,\n <rasland@nvidia.com>, Hamdan Igbaria <hamdani@nvidia.com>,\n Suanming Mou <suanmingm@nvidia.com>, Matan Azrad <matan@nvidia.com>,\n Viacheslav Ovsiienko <viacheslavo@nvidia.com>, Ori Kam <orika@nvidia.com>",
        "Subject": "[PATCH v7 02/10] net/mlx5/hws: support creating of dynamic forward\n table and FTE",
        "Date": "Thu, 26 Oct 2023 10:12:21 +0300",
        "Message-ID": "<20231026071229.300162-3-getelson@nvidia.com>",
        "X-Mailer": "git-send-email 2.39.2",
        "In-Reply-To": "<20231026071229.300162-1-getelson@nvidia.com>",
        "References": "<20231017080928.30454-1-getelson@nvidia.com>\n <20231026071229.300162-1-getelson@nvidia.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.126.230.35]",
        "X-ClientProxiedBy": "rnnvmail202.nvidia.com (10.129.68.7) To\n rnnvmail201.nvidia.com (10.129.68.8)",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "CY4PEPF0000EE38:EE_|CH2PR12MB4183:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "62e1da68-112f-4056-0b99-08dbd5f2fc24",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n sawHfh2azvbKvCsHmB24ZZtj0x80vH0rdXiV3fCycUxUZ4L3I4w1bP4P7y4eM7SmBuNTkO1jQwFslSnUpv7TZyUGW2scZ0pGulc+mz3mYMQmhbqi9woNu/sfFBXCEvZmPaqHVHRktkZQ+DbEIbVj+tuB/fgkq/8FwIxNv4Hy7a6kN0/XH8sJLyrjdb9iVB3LYh2bmjGFYcBoH9DcSIRzEIt3TmsrGl7w0rRTR02U++WT3DbnW7h8sjkAYK76+yhuMPrx866l5Iq8hdkWv4nmZhtb/5IBlKau9fsZaKWdIDbos6OytpeLzSOF+6zVS6NEETsUWD9tpm0wlrMWzCJ0fq3GNlSo8g54dIHvyGPnoFppFi/7V1YifppN7CeNfz8r96ybJG1XaD9M14hYLlgmgEQyTGnKKeXjAVXdOEMirSSgLZUdueWWJgblzzAVyezcHfkoF0uuQlJ4pGMFNEwgCtnjb1XAmrFq+J9BRY3Z7HQtDor8ocQCNfGWlZaSmmR0hblHhFmePnDUu46ttNjOhb4FEpU3aYVvtDsnjly3fCAVsbUqIZ+KMvpfnCmEpMb4JQvEwMCP4koqODQ4SslMlphmc+h7Lxx6F1R65aP04YRNCUIJP64rz0AAkQQUaNsrvEAXtiE500Lg8Y04ifJiErlSvDaXKQIgK/zIn/tRFFY6AaiQ0FGRjSH3JK3wrR1Q3DshVj9sXdyS2321cgfi/HMCOay8wD2tCvK9NnY4QlAAApO8Iy9m6oNXAI3KigY5",
        "X-Forefront-Antispam-Report": "CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1;\n SRV:;\n IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE;\n SFS:(13230031)(4636009)(39860400002)(376002)(396003)(346002)(136003)(230922051799003)(186009)(82310400011)(451199024)(64100799003)(1800799009)(46966006)(36840700001)(40470700004)(6286002)(55016003)(36860700001)(40460700003)(2906002)(41300700001)(86362001)(36756003)(26005)(5660300002)(316002)(8936002)(8676002)(4326008)(6916009)(356005)(7636003)(54906003)(107886003)(1076003)(478600001)(16526019)(7696005)(2616005)(70206006)(82740400003)(70586007)(83380400001)(47076005)(426003)(40480700001)(336012)(6666004);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "Nvidia.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "26 Oct 2023 07:12:59.1142 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 62e1da68-112f-4056-0b99-08dbd5f2fc24",
        "X-MS-Exchange-CrossTenant-Id": "43083d15-7273-40c1-b7db-39efd9ccc17a",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161];\n Helo=[mail.nvidia.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n CY4PEPF0000EE38.namprd03.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "CH2PR12MB4183",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "From: Hamdan Igbaria <hamdani@nvidia.com>\n\nAdd the ability to create forward table and FTE.\n\nSigned-off-by: Hamdan Igbaria <hamdani@nvidia.com>\nAcked-by: Suanming Mou <suanmingm@nvidia.com>\n---\n drivers/common/mlx5/mlx5_prm.h    |  4 ++++\n drivers/net/mlx5/hws/mlx5dr_cmd.c | 13 +++++++++++++\n drivers/net/mlx5/hws/mlx5dr_cmd.h | 19 +++++++++++++++++++\n 3 files changed, 36 insertions(+)",
    "diff": "diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h\nindex 4192fff55b..df621b19af 100644\n--- a/drivers/common/mlx5/mlx5_prm.h\n+++ b/drivers/common/mlx5/mlx5_prm.h\n@@ -5048,7 +5048,11 @@ enum mlx5_flow_destination_type {\n };\n \n enum mlx5_flow_context_action {\n+\tMLX5_FLOW_CONTEXT_ACTION_DROP = 1 << 1,\n \tMLX5_FLOW_CONTEXT_ACTION_FWD_DEST = 1 << 2,\n+\tMLX5_FLOW_CONTEXT_ACTION_REFORMAT = 1 << 4,\n+\tMLX5_FLOW_CONTEXT_ACTION_DECRYPT = 1 << 12,\n+\tMLX5_FLOW_CONTEXT_ACTION_ENCRYPT = 1 << 13,\n };\n \n enum mlx5_flow_context_flow_source {\ndiff --git a/drivers/net/mlx5/hws/mlx5dr_cmd.c b/drivers/net/mlx5/hws/mlx5dr_cmd.c\nindex 0ccbaee961..8f407f9bce 100644\n--- a/drivers/net/mlx5/hws/mlx5dr_cmd.c\n+++ b/drivers/net/mlx5/hws/mlx5dr_cmd.c\n@@ -42,6 +42,7 @@ mlx5dr_cmd_flow_table_create(struct ibv_context *ctx,\n \tft_ctx = MLX5_ADDR_OF(create_flow_table_in, in, flow_table_context);\n \tMLX5_SET(flow_table_context, ft_ctx, level, ft_attr->level);\n \tMLX5_SET(flow_table_context, ft_ctx, rtc_valid, ft_attr->rtc_valid);\n+\tMLX5_SET(flow_table_context, ft_ctx, reformat_en, ft_attr->reformat_en);\n \n \tdevx_obj->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out));\n \tif (!devx_obj->obj) {\n@@ -182,12 +183,24 @@ mlx5dr_cmd_set_fte(struct ibv_context *ctx,\n \taction_flags = fte_attr->action_flags;\n \tMLX5_SET(flow_context, in_flow_context, action, action_flags);\n \n+\tif (action_flags & MLX5_FLOW_CONTEXT_ACTION_REFORMAT)\n+\t\tMLX5_SET(flow_context, in_flow_context,\n+\t\t\t packet_reformat_id, fte_attr->packet_reformat_id);\n+\n+\tif (action_flags & (MLX5_FLOW_CONTEXT_ACTION_DECRYPT | MLX5_FLOW_CONTEXT_ACTION_ENCRYPT)) {\n+\t\tMLX5_SET(flow_context, in_flow_context,\n+\t\t\t encrypt_decrypt_type, fte_attr->encrypt_decrypt_type);\n+\t\tMLX5_SET(flow_context, in_flow_context,\n+\t\t\t encrypt_decrypt_obj_id, fte_attr->encrypt_decrypt_obj_id);\n+\t}\n+\n \tif (action_flags & MLX5_FLOW_CONTEXT_ACTION_FWD_DEST) {\n \t\t/* Only destination_list_size of size 1 is supported */\n \t\tMLX5_SET(flow_context, in_flow_context, destination_list_size, 1);\n \t\tin_dests = MLX5_ADDR_OF(flow_context, in_flow_context, destination);\n \t\tMLX5_SET(dest_format, in_dests, destination_type, fte_attr->destination_type);\n \t\tMLX5_SET(dest_format, in_dests, destination_id, fte_attr->destination_id);\n+\t\tMLX5_SET(set_fte_in, in, ignore_flow_level, fte_attr->ignore_flow_level);\n \t}\n \n \tdevx_obj->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out));\ndiff --git a/drivers/net/mlx5/hws/mlx5dr_cmd.h b/drivers/net/mlx5/hws/mlx5dr_cmd.h\nindex f45b6c6b07..bf3a362300 100644\n--- a/drivers/net/mlx5/hws/mlx5dr_cmd.h\n+++ b/drivers/net/mlx5/hws/mlx5dr_cmd.h\n@@ -7,8 +7,12 @@\n \n struct mlx5dr_cmd_set_fte_attr {\n \tuint32_t action_flags;\n+\tuint8_t encrypt_decrypt_type;\n+\tuint32_t encrypt_decrypt_obj_id;\n+\tuint32_t packet_reformat_id;\n \tuint8_t destination_type;\n \tuint32_t destination_id;\n+\tuint8_t ignore_flow_level;\n \tuint8_t flow_source;\n };\n \n@@ -16,6 +20,7 @@ struct mlx5dr_cmd_ft_create_attr {\n \tuint8_t type;\n \tuint8_t level;\n \tbool rtc_valid;\n+\tuint8_t reformat_en;\n };\n \n #define ACCESS_KEY_LEN\t32\n@@ -296,6 +301,20 @@ struct mlx5dr_devx_obj *\n mlx5dr_cmd_packet_reformat_create(struct ibv_context *ctx,\n \t\t\t\t  struct mlx5dr_cmd_packet_reformat_create_attr *attr);\n \n+struct mlx5dr_devx_obj *\n+mlx5dr_cmd_set_fte(struct ibv_context *ctx,\n+\t\t   uint32_t table_type,\n+\t\t   uint32_t table_id,\n+\t\t   uint32_t group_id,\n+\t\t   struct mlx5dr_cmd_set_fte_attr *fte_attr);\n+\n+struct mlx5dr_cmd_forward_tbl *\n+mlx5dr_cmd_forward_tbl_create(struct ibv_context *ctx,\n+\t\t\t      struct mlx5dr_cmd_ft_create_attr *ft_attr,\n+\t\t\t      struct mlx5dr_cmd_set_fte_attr *fte_attr);\n+\n+void mlx5dr_cmd_forward_tbl_destroy(struct mlx5dr_cmd_forward_tbl *tbl);\n+\n struct mlx5dr_devx_obj *\n mlx5dr_cmd_alias_obj_create(struct ibv_context *ctx,\n \t\t\t    struct mlx5dr_cmd_alias_obj_create_attr *alias_attr);\n",
    "prefixes": [
        "v7",
        "02/10"
    ]
}