get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 52567,
    "url": "http://patches.dpdk.org/api/patches/52567/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/69b3fcf19cb3e11fae93281f40a1bbc0ec5a2e38.1554894242.git.igor.russkikh@aquantia.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": "<69b3fcf19cb3e11fae93281f40a1bbc0ec5a2e38.1554894242.git.igor.russkikh@aquantia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/69b3fcf19cb3e11fae93281f40a1bbc0ec5a2e38.1554894242.git.igor.russkikh@aquantia.com",
    "date": "2019-04-10T11:18:40",
    "name": "[01/10] ethdev: introduce MACSEC device ops",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "98dbd5d728c37a8f07c5521c8e908bd3872c2e73",
    "submitter": {
        "id": 1124,
        "url": "http://patches.dpdk.org/api/people/1124/?format=api",
        "name": "Igor Russkikh",
        "email": "igor.russkikh@aquantia.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/69b3fcf19cb3e11fae93281f40a1bbc0ec5a2e38.1554894242.git.igor.russkikh@aquantia.com/mbox/",
    "series": [
        {
            "id": 4234,
            "url": "http://patches.dpdk.org/api/series/4234/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4234",
            "date": "2019-04-10T11:18:35",
            "name": "add MACSEC hw offload to atlantic PMD",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/4234/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/52567/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/52567/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 424935689;\n\tWed, 10 Apr 2019 13:18:44 +0200 (CEST)",
            "from NAM03-CO1-obe.outbound.protection.outlook.com\n\t(mail-eopbgr790077.outbound.protection.outlook.com [40.107.79.77])\n\tby dpdk.org (Postfix) with ESMTP id 1FD305592\n\tfor <dev@dpdk.org>; Wed, 10 Apr 2019 13:18:42 +0200 (CEST)",
            "from BN8PR11MB3618.namprd11.prod.outlook.com (20.178.219.85) by\n\tBN8PR11MB3540.namprd11.prod.outlook.com (20.178.218.78) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n\t15.20.1771.21; Wed, 10 Apr 2019 11:18:40 +0000",
            "from BN8PR11MB3618.namprd11.prod.outlook.com\n\t([fe80::9d38:1845:842d:a489]) by\n\tBN8PR11MB3618.namprd11.prod.outlook.com\n\t([fe80::9d38:1845:842d:a489%3]) with mapi id 15.20.1771.016;\n\tWed, 10 Apr 2019 11:18:40 +0000"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=AQUANTIA1COM.onmicrosoft.com; s=selector1-aquantia-com;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n\tbh=fEN/3aV1EOskfOINKeraXqm36dkydOJYkOhDOnQa2wM=;\n\tb=e+qeoLfGUxmhYou0eGAnz8S+JrRTYEG37HPR/gz7aAgDxMVBGFX4qWWFboRzJs50jeErT5TOZuOa6ElKLPnJBIKBhVARj4XvUfLQkRWsj081aFeylMUMqGHN86BHaikyfael9lrFjcyDdhiK0GyE3hWj57asJycE9plRa+CDs7g=",
        "From": "Igor Russkikh <Igor.Russkikh@aquantia.com>",
        "To": "\"dev@dpdk.org\" <dev@dpdk.org>",
        "CC": "Pavel Belous <Pavel.Belous@aquantia.com>, Wenzhuo Lu\n\t<wenzhuo.lu@intel.com>, Jingjing Wu <jingjing.wu@intel.com>, Bernard\n\tIremonger <bernard.iremonger@intel.com>, John McNamara\n\t<john.mcnamara@intel.com>, Marko Kovacevic <marko.kovacevic@intel.com>,\n\tKonstantin Ananyev <konstantin.ananyev@intel.com>, Thomas Monjalon\n\t<thomas@monjalon.net>, Ferruh Yigit <ferruh.yigit@intel.com>, Andrew\n\tRybchenko <arybchenko@solarflare.com>, Igor Russkikh\n\t<Igor.Russkikh@aquantia.com>",
        "Thread-Topic": "[PATCH  01/10] ethdev: introduce MACSEC device ops",
        "Thread-Index": "AQHU748mXHLLDK9oYE6FEmEkoBUS2w==",
        "Date": "Wed, 10 Apr 2019 11:18:40 +0000",
        "Message-ID": "<69b3fcf19cb3e11fae93281f40a1bbc0ec5a2e38.1554894242.git.igor.russkikh@aquantia.com>",
        "References": "<cover.1554894242.git.igor.russkikh@aquantia.com>",
        "In-Reply-To": "<cover.1554894242.git.igor.russkikh@aquantia.com>",
        "Accept-Language": "en-US",
        "Content-Language": "en-US",
        "X-MS-Has-Attach": "",
        "X-MS-TNEF-Correlator": "",
        "x-clientproxiedby": "BYAPR05CA0061.namprd05.prod.outlook.com\n\t(2603:10b6:a03:74::38) To BN8PR11MB3618.namprd11.prod.outlook.com\n\t(2603:10b6:408:85::21)",
        "authentication-results": "spf=none (sender IP is )\n\tsmtp.mailfrom=Igor.Russkikh@aquantia.com; ",
        "x-ms-exchange-messagesentrepresentingtype": "1",
        "x-mailer": "git-send-email 2.17.1",
        "x-originating-ip": "[95.79.108.179]",
        "x-ms-publictraffictype": "Email",
        "x-ms-office365-filtering-correlation-id": "fa3dd50a-de3a-4242-b206-08d6bda64886",
        "x-microsoft-antispam": "BCL:0; PCL:0;\n\tRULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(2017052603328)(7193020);\n\tSRVR:BN8PR11MB3540; ",
        "x-ms-traffictypediagnostic": "BN8PR11MB3540:",
        "x-microsoft-antispam-prvs": "<BN8PR11MB35403E84B3F4A16E7B415C7C982E0@BN8PR11MB3540.namprd11.prod.outlook.com>",
        "x-forefront-prvs": "00032065B2",
        "x-forefront-antispam-report": "SFV:NSPM;\n\tSFS:(10009020)(396003)(39850400004)(376002)(366004)(136003)(346002)(199004)(189003)(486006)(107886003)(6506007)(316002)(2616005)(386003)(54906003)(7416002)(53936002)(8936002)(68736007)(446003)(6916009)(476003)(72206003)(2501003)(105586002)(11346002)(44832011)(99286004)(2351001)(52116002)(186003)(26005)(118296001)(106356001)(14454004)(102836004)(76176011)(71200400001)(81156014)(7736002)(14444005)(8676002)(81166006)(25786009)(256004)(6116002)(5660300002)(71190400001)(1730700003)(5640700003)(2906002)(66066001)(6512007)(478600001)(6486002)(50226002)(305945005)(97736004)(4326008)(3846002)(36756003)(6436002)(86362001);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:BN8PR11MB3540;\n\tH:BN8PR11MB3618.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en;\n\tPTR:InfoNoRecords; A:1; MX:1; ",
        "received-spf": "None (protection.outlook.com: aquantia.com does not designate\n\tpermitted sender hosts)",
        "x-ms-exchange-senderadcheck": "1",
        "x-microsoft-antispam-message-info": "aBqlm+3kEcbHpT/YoIkKTtHiX4FkKQe0ydqw8lwDR050/lTSmKHCVbR3CzZqm/J6J+D/BW2LmY9SaqrRhJqmE3NKMe0QWO+zwBPxFPNW3y6s1i9okwMqhYjeJh2tV65WiT89QBs1E/9g9JsTiYlkFEt00eUihdYsCVR1JFpCMDN8hn6jH2zDfxPlt/xZWxr2jGU2KtzZW7buEOs+mC/E4ZxoLer35ibvkA3vSYY7cwKj1tK3WHD5RM2Ao/S9lQ/Ar+sMh5ueIoPNSGq63ZQMXTuG4pIUvFXcymKV4vZ5/FCwa7aO/MfAj3XEslUuYLuFDG5szrKBMurZGQcTZziOFb89XfeA8SyprTjh8KCHdjoJG0xmWrThOUR1lkLp4usqNVZHYwNvuzKWXChpeWQfTYfOpsuBKhXqAF+rxfTn57Q=",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "MIME-Version": "1.0",
        "X-OriginatorOrg": "aquantia.com",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "fa3dd50a-de3a-4242-b206-08d6bda64886",
        "X-MS-Exchange-CrossTenant-originalarrivaltime": "10 Apr 2019 11:18:40.2504\n\t(UTC)",
        "X-MS-Exchange-CrossTenant-fromentityheader": "Hosted",
        "X-MS-Exchange-CrossTenant-id": "83e2e134-991c-4ede-8ced-34d47e38e6b1",
        "X-MS-Exchange-CrossTenant-mailboxtype": "HOSTED",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "BN8PR11MB3540",
        "Subject": "[dpdk-dev] [PATCH  01/10] ethdev: introduce MACSEC device ops",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "MACSEC related device ops, API and parameters are taken from the\nexisting ixgbe PMD ops\n\nSigned-off-by: Igor Russkikh <igor.russkikh@aquantia.com>\n---\n lib/librte_ethdev/rte_ethdev.c      |  87 +++++++++++++++++++++\n lib/librte_ethdev/rte_ethdev.h      | 115 ++++++++++++++++++++++++++++\n lib/librte_ethdev/rte_ethdev_core.h |  23 ++++++\n 3 files changed, 225 insertions(+)",
    "diff": "diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c\r\nindex 243beb4dd5ef..315c31dc667d 100644\r\n--- a/lib/librte_ethdev/rte_ethdev.c\r\n+++ b/lib/librte_ethdev/rte_ethdev.c\r\n@@ -4367,6 +4367,93 @@ rte_eth_dev_pool_ops_supported(uint16_t port_id, const char *pool)\r\n \treturn (*dev->dev_ops->pool_ops_supported)(dev, pool);\r\n }\r\n \r\n+int\r\n+rte_eth_macsec_enable(uint16_t port_id,\r\n+\t\t      uint8_t encr, uint8_t repl_prot)\r\n+{\r\n+\tstruct rte_eth_dev *dev;\r\n+\r\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);\r\n+\tdev = &rte_eth_devices[port_id];\r\n+\r\n+\tRTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->macsec_enable, -ENOTSUP);\r\n+\treturn eth_err(port_id, (*dev->dev_ops->macsec_enable)\r\n+\t\t\t\t(dev, encr, repl_prot));\r\n+}\r\n+\r\n+int\r\n+rte_eth_macsec_disable(uint16_t port_id)\r\n+{\r\n+\tstruct rte_eth_dev *dev;\r\n+\r\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);\r\n+\tdev = &rte_eth_devices[port_id];\r\n+\r\n+\tRTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->macsec_disable, -ENOTSUP);\r\n+\treturn eth_err(port_id, (*dev->dev_ops->macsec_disable)\r\n+\t\t\t\t(dev));\r\n+}\r\n+\r\n+int\r\n+rte_eth_macsec_config_rxsc(uint16_t port_id,\r\n+\t\t\t   uint8_t *mac, uint16_t pi)\r\n+{\r\n+\tstruct rte_eth_dev *dev;\r\n+\r\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);\r\n+\tdev = &rte_eth_devices[port_id];\r\n+\r\n+\tRTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->macsec_config_rxsc, -ENOTSUP);\r\n+\treturn eth_err(port_id, (*dev->dev_ops->macsec_config_rxsc)\r\n+\t\t\t\t(dev, mac, pi));\r\n+}\r\n+\r\n+int\r\n+rte_eth_macsec_config_txsc(uint16_t port_id,\r\n+\t\t\t   uint8_t *mac)\r\n+{\r\n+\tstruct rte_eth_dev *dev;\r\n+\r\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);\r\n+\tdev = &rte_eth_devices[port_id];\r\n+\r\n+\tRTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->macsec_config_txsc, -ENOTSUP);\r\n+\treturn eth_err(port_id, (*dev->dev_ops->macsec_config_txsc)\r\n+\t\t\t\t(dev, mac));\r\n+}\r\n+\r\n+int\r\n+rte_eth_macsec_select_rxsa(uint16_t port_id,\r\n+\t\t\t\t\tuint8_t idx, uint8_t an,\r\n+\t\t\t\t\tuint32_t pn, uint8_t *key)\r\n+{\r\n+\tstruct rte_eth_dev *dev;\r\n+\r\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);\r\n+\tdev = &rte_eth_devices[port_id];\r\n+\r\n+\tRTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->macsec_select_rxsa, -ENOTSUP);\r\n+\treturn eth_err(port_id, (*dev->dev_ops->macsec_select_rxsa)\r\n+\t\t\t\t(dev, idx, an, pn, key));\r\n+}\r\n+\r\n+int\r\n+rte_eth_macsec_select_txsa(uint16_t port_id,\r\n+\t\t\t\t\tuint8_t idx, uint8_t an,\r\n+\t\t\t\t\tuint32_t pn, uint8_t *key)\r\n+{\r\n+\tstruct rte_eth_dev *dev;\r\n+\r\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);\r\n+\tdev = &rte_eth_devices[port_id];\r\n+\r\n+\tRTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->macsec_select_txsa, -ENOTSUP);\r\n+\treturn eth_err(port_id, (*dev->dev_ops->macsec_select_txsa)\r\n+\t\t\t\t(dev, idx, an, pn, key));\r\n+}\r\n+\r\n+\r\n+\r\n /**\r\n  * A set of values to describe the possible states of a switch domain.\r\n  */\r\ndiff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h\r\nindex 40a068fe8337..0e4e889653ad 100644\r\n--- a/lib/librte_ethdev/rte_ethdev.h\r\n+++ b/lib/librte_ethdev/rte_ethdev.h\r\n@@ -3872,6 +3872,121 @@ rte_eth_dev_pool_ops_supported(uint16_t port_id, const char *pool);\r\n void *\r\n rte_eth_dev_get_sec_ctx(uint16_t port_id);\r\n \r\n+/**\r\n+ * Enable MACsec offload.\r\n+ *\r\n+ * @param port_id\r\n+ *   The port identifier of the Ethernet device.\r\n+ * @param encr\r\n+ *    1 - Enable encryption (encrypt and add integrity signature).\r\n+ *    0 - Disable encryption (only add integrity signature).\r\n+ * @param repl_prot\r\n+ *    1 - Enable replay protection.\r\n+ *    0 - Disable replay protection.\r\n+ * @return\r\n+ *   - (0) if successful.\r\n+ *   - (-ENODEV) if *port* invalid.\r\n+ *   - (-ENOTSUP) if hardware doesn't support this feature.\r\n+ */\r\n+int\r\n+rte_eth_macsec_enable(uint16_t port_id,\r\n+\t\t      uint8_t encr, uint8_t repl_prot);\r\n+\r\n+/**\r\n+ * Disable MACsec offload.\r\n+ *\r\n+ * @param port_id\r\n+ *   The port identifier of the Ethernet device.\r\n+ * @return\r\n+ *   - (0) if successful.\r\n+ *   - (-ENODEV) if *port* invalid.\r\n+ *   - (-ENOTSUP) if hardware doesn't support this feature.\r\n+ */\r\n+int\r\n+rte_eth_macsec_disable(uint16_t port_id);\r\n+\r\n+/**\r\n+ * Configure Rx SC (Secure Connection).\r\n+ *\r\n+ * @param port_id\r\n+ *   The port identifier of the Ethernet device.\r\n+ * @param mac\r\n+ *   The MAC address on the remote side.\r\n+ * @param pi\r\n+ *   The PI (port identifier) on the remote side.\r\n+ * @return\r\n+ *   - (0) if successful.\r\n+ *   - (-ENODEV) if *port* invalid.\r\n+ *   - (-ENOTSUP) if hardware doesn't support this feature.\r\n+ */\r\n+int\r\n+rte_eth_macsec_config_rxsc(uint16_t port_id,\r\n+\t\t\t   uint8_t *mac, uint16_t pi);\r\n+\r\n+/**\r\n+ * Configure Tx SC (Secure Connection).\r\n+ *\r\n+ * @param port_id\r\n+ *   The port identifier of the Ethernet device.\r\n+ * @param mac\r\n+ *   The MAC address on the local side.\r\n+ * @return\r\n+ *   - (0) if successful.\r\n+ *   - (-ENODEV) if *port* invalid.\r\n+ *   - (-ENOTSUP) if hardware doesn't support this feature.\r\n+ */\r\n+int\r\n+rte_eth_macsec_config_txsc(uint16_t port_id,\r\n+\t\t\t   uint8_t *mac);\r\n+\r\n+/**\r\n+ * Enable Rx SA (Secure Association).\r\n+ *\r\n+ * @param port_id\r\n+ *   The port identifier of the Ethernet device.\r\n+ * @param idx\r\n+ *   The SA to be enabled (0 or 1)\r\n+ * @param an\r\n+ *   The association number on the remote side.\r\n+ * @param pn\r\n+ *   The packet number on the remote side.\r\n+ * @param key\r\n+ *   The key on the remote side.\r\n+ * @return\r\n+ *   - (0) if successful.\r\n+ *   - (-ENODEV) if *port* invalid.\r\n+ *   - (-ENOTSUP) if hardware doesn't support this feature.\r\n+ *   - (-EINVAL) if bad parameter.\r\n+ */\r\n+int\r\n+rte_eth_macsec_select_rxsa(uint16_t port_id,\r\n+\t\t\t   uint8_t idx, uint8_t an,\r\n+\t\t\t   uint32_t pn, uint8_t *key);\r\n+\r\n+/**\r\n+ * Enable Tx SA (Secure Association).\r\n+ *\r\n+ * @param port_id\r\n+ *   The port identifier of the Ethernet device.\r\n+ * @param idx\r\n+ *   The SA to be enabled (0 or 1).\r\n+ * @param an\r\n+ *   The association number on the local side.\r\n+ * @param pn\r\n+ *   The packet number on the local side.\r\n+ * @param key\r\n+ *   The key on the local side.\r\n+ * @return\r\n+ *   - (0) if successful.\r\n+ *   - (-ENODEV) if *port* invalid.\r\n+ *   - (-ENOTSUP) if hardware doesn't support this feature.\r\n+ *   - (-EINVAL) if bad parameter.\r\n+ */\r\n+int\r\n+rte_eth_macsec_select_txsa(uint16_t port_id,\r\n+\t\t\t   uint8_t idx, uint8_t an,\r\n+\t\t\t   uint32_t pn, uint8_t *key);\r\n+\r\n \r\n #include <rte_ethdev_core.h>\r\n \r\ndiff --git a/lib/librte_ethdev/rte_ethdev_core.h b/lib/librte_ethdev/rte_ethdev_core.h\r\nindex 8f03f83f62cf..6434a9065756 100644\r\n--- a/lib/librte_ethdev/rte_ethdev_core.h\r\n+++ b/lib/librte_ethdev/rte_ethdev_core.h\r\n@@ -377,6 +377,20 @@ typedef int (*eth_pool_ops_supported_t)(struct rte_eth_dev *dev,\r\n \t\t\t\t\t\tconst char *pool);\r\n /**< @internal Test if a port supports specific mempool ops */\r\n \r\n+typedef int (*eth_macsec_enable_t)(struct rte_eth_dev *dev,\r\n+\t\t\t\t   uint8_t encr, uint8_t repl_prot);\r\n+typedef int (*eth_macsec_disable_t)(struct rte_eth_dev *dev);\r\n+typedef int (*eth_macsec_config_rxsc_t)(struct rte_eth_dev *dev,\r\n+\t\t\t\t\tuint8_t *mac, uint16_t pi);\r\n+typedef int (*eth_macsec_config_txsc_t)(struct rte_eth_dev *dev,\r\n+\t\t\t\t\tuint8_t *mac);\r\n+typedef int (*eth_macsec_select_rxsa_t)(struct rte_eth_dev *dev,\r\n+\t\t\t\t\tuint8_t idx, uint8_t an,\r\n+\t\t\t\t\tuint32_t pn, uint8_t *key);\r\n+typedef int (*eth_macsec_select_txsa_t)(struct rte_eth_dev *dev,\r\n+\t\t\t\t\tuint8_t idx, uint8_t an,\r\n+\t\t\t\t\tuint32_t pn, uint8_t *key);\r\n+\r\n /**\r\n  * @internal A structure containing the functions exported by an Ethernet driver.\r\n  */\r\n@@ -509,6 +523,15 @@ struct eth_dev_ops {\r\n \r\n \teth_pool_ops_supported_t pool_ops_supported;\r\n \t/**< Test if a port supports specific mempool ops */\r\n+\r\n+\teth_macsec_enable_t macsec_enable; /** macsec function enable */\r\n+\teth_macsec_disable_t macsec_disable; /** macsec function disable */\r\n+\teth_macsec_config_rxsc_t macsec_config_rxsc; /** macsec configure rx */\r\n+\teth_macsec_config_txsc_t macsec_config_txsc; /** macsec configure tx */\r\n+\teth_macsec_select_rxsa_t macsec_select_rxsa;\r\n+\t/** macsec select rx security association */\r\n+\teth_macsec_select_txsa_t macsec_select_txsa;\r\n+\t/** macsec select tx security association */\r\n };\r\n \r\n /**\r\n",
    "prefixes": [
        "01/10"
    ]
}