get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 28574,
    "url": "https://patches.dpdk.org/api/patches/28574/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/ce7981e06173fc681d5fdf165eef22c602211a5d.1505044395.git.shahafs@mellanox.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<ce7981e06173fc681d5fdf165eef22c602211a5d.1505044395.git.shahafs@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/ce7981e06173fc681d5fdf165eef22c602211a5d.1505044395.git.shahafs@mellanox.com",
    "date": "2017-09-10T12:07:49",
    "name": "[dpdk-dev,v2,2/2] ethdev: introduce Tx queue offloads API",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "cc57ceead48f6fa7a2b17437c2685c1b9595df32",
    "submitter": {
        "id": 634,
        "url": "https://patches.dpdk.org/api/people/634/?format=api",
        "name": "Shahaf Shuler",
        "email": "shahafs@mellanox.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/ce7981e06173fc681d5fdf165eef22c602211a5d.1505044395.git.shahafs@mellanox.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/28574/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/28574/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 44EFF1B1A1;\n\tSun, 10 Sep 2017 14:08:07 +0200 (CEST)",
            "from EUR01-DB5-obe.outbound.protection.outlook.com\n\t(mail-db5eur01on0053.outbound.protection.outlook.com [104.47.2.53])\n\tby dpdk.org (Postfix) with ESMTP id 816A21AEEB\n\tfor <dev@dpdk.org>; Sun, 10 Sep 2017 14:08:03 +0200 (CEST)",
            "from mellanox.com (82.166.227.17) by\n\tAM4PR05MB3140.eurprd05.prod.outlook.com (2603:10a6:205:3::17) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.12;\n\tSun, 10 Sep 2017 12:08:00 +0000"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com;\n\ts=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version;\n\tbh=aPij40JjLz/0IfY2g3EU2MtBxDgQHWSZm0kgTiK2xTk=;\n\tb=YrUuqrOLSv7pQQDSfGfhvrVHE8gK64pgmigimPguPe+KtKIEwvq2fcT9JLwk8aOeVSn/fn1uIChCATFi1qdWYkNfNPE4t1iFUqaXdH/god7+tc9cG/tu/PQHhjs0ap7G6ZxmFjAl7HpqOaPjaPPfXdX6U7nWEHYXy6AUcwttBbs=",
        "Authentication-Results": "spf=none (sender IP is )\n\tsmtp.mailfrom=shahafs@mellanox.com; ",
        "From": "Shahaf Shuler <shahafs@mellanox.com>",
        "To": "thomas@monjalon.net",
        "Cc": "dev@dpdk.org",
        "Date": "Sun, 10 Sep 2017 15:07:49 +0300",
        "Message-Id": "<ce7981e06173fc681d5fdf165eef22c602211a5d.1505044395.git.shahafs@mellanox.com>",
        "X-Mailer": "git-send-email 2.12.0",
        "In-Reply-To": "<cover.1505044395.git.shahafs@mellanox.com>",
        "References": "<cover.1504508374.git.shahafs@mellanox.com>\n\t<cover.1505044395.git.shahafs@mellanox.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[82.166.227.17]",
        "X-ClientProxiedBy": "VI1PR0502CA0025.eurprd05.prod.outlook.com\n\t(2603:10a6:803:1::38) To AM4PR05MB3140.eurprd05.prod.outlook.com\n\t(2603:10a6:205:3::17)",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-Office365-Filtering-Correlation-Id": "86d033b2-bc73-49e7-8139-08d4f84494e5",
        "X-MS-Office365-Filtering-HT": "Tenant",
        "X-Microsoft-Antispam": "UriScan:; BCL:0; PCL:0;\n\tRULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);\n\tSRVR:AM4PR05MB3140; ",
        "X-Microsoft-Exchange-Diagnostics": [
            "1; AM4PR05MB3140;\n\t3:d8d9uFZJBKi1bGf2vz4d81y64xvrs1Wp5U/hEwHNryvLD1wYNMZHAyVwarpEa9JwpamMYwQwVZFXzUd+PGt3XVOqPGvexrxa4xz06BIMJCmq3J3/NXqPiemptDYybjewxZT6eueDqZdTBsLFaJ8yMnZxAknp0SN1kDiRetw8AVoO8Ave1qzb2fEsw8TnCmJqaCHAXCyZa19dhLDTExJuXbylJnz+2JL5Z59UhSWfua2fNpzsgGr3RSiml0VQGsmX;\n\t25:oTUv789oFb896EQvvec41sLkEtzOQ5lu4NYdqPzojB3bBzJqEd8eU4GtwTRqYeszOFeR9bslQUr5fAZawB7iRCuoRgQw/FPARKuke1gd17OdinX5K7k6UWN6nKGcyNBywqT27/3crQXunGF8jUVAJdI2fc9zqGyIol8bKHZe5hPOSxgBo7Hf1squl7g11ILOG9Mb8yGK3ytCZGI1cHogLSt1QxOwFwOy4pMdlkR0LRur/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Qx5AYgI88WxEyNdF71/DIAt7HzD4MeUJBn1utg8Z0xOBxExxQlIYbWKSdkoFGSlBvxFDXlTIShtLI1QGE4pBZzBuzlL0X1vbLTlurCRCY98HQ6iEK9Gn+TVj4AwrheU0joqnvObek2TQ="
        ],
        "X-MS-TrafficTypeDiagnostic": "AM4PR05MB3140:",
        "X-LD-Processed": "a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr",
        "X-Exchange-Antispam-Report-Test": "UriScan:(20558992708506)(278428928389397);",
        "X-Microsoft-Antispam-PRVS": "<AM4PR05MB31403E6546BCD86C93F69928C36B0@AM4PR05MB3140.eurprd05.prod.outlook.com>",
        "X-Exchange-Antispam-Report-CFA-Test": "BCL:0; PCL:0;\n\tRULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(20161123560025)(20161123555025)(20161123564025)(20161123558100)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);\n\tSRVR:AM4PR05MB3140; BCL:0; PCL:0;\n\tRULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);\n\tSRVR:AM4PR05MB3140; ",
        "X-Forefront-PRVS": "04267075BD",
        "X-Forefront-Antispam-Report": "SFV:NSPM;\n\tSFS:(10009020)(4630300001)(7370300001)(6009001)(39860400002)(189002)(199003)(305945005)(50466002)(48376002)(50226002)(189998001)(2906002)(8676002)(21086003)(5660300001)(25786009)(66066001)(3846002)(69596002)(42186005)(47776003)(6116002)(7736002)(478600001)(7350300001)(81156014)(81166006)(4326008)(50986999)(55016002)(101416001)(53936002)(6666003)(86362001)(68736007)(6916009)(2950100002)(76176999)(105586002)(2351001)(2361001)(118296001)(106356001)(36756003)(110136004)(5003940100001)(97736004)(33646002)(33026002);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3140; H:mellanox.com; FPR:;\n\tSPF:None; \n\tPTR:InfoNoRecords; MX:1; A:1; LANG:en; ",
        "Received-SPF": "None (protection.outlook.com: mellanox.com does not designate\n\tpermitted sender hosts)",
        "SpamDiagnosticOutput": "1:99",
        "SpamDiagnosticMetadata": "NSPM",
        "X-OriginatorOrg": "Mellanox.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "10 Sep 2017 12:08:00.1084\n\t(UTC)",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "Hosted",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "AM4PR05MB3140",
        "Subject": "[dpdk-dev] [PATCH v2 2/2] ethdev: introduce Tx queue offloads API",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Introduce a new API to configure Tx offloads.\n\nIn the new API, offloads are divided into per-port and per-queue\noffloads. The PMD reports capability for each of them.\nOffloads are enabled using the existing DEV_TX_OFFLOAD_* flags.\nTo enable per-port offload, the offload should be set on both device\nconfiguration and queue configuration. To enable per-queue offload, the\noffloads can be set only on queue configuration.\n\nIn addition the Tx offloads will be disabled by default and be\nenabled per application needs. This will much simplify PMD management of\nthe different offloads.\n\nThe new API does not have an equivalent for the below, benchmark\nspecific, flags:\n\n\t- ETH_TXQ_FLAGS_NOREFCOUNT\n\t- ETH_TXQ_FLAGS_NOMULTMEMP\n\nApplications should set the ETH_TXQ_FLAGS_IGNORE flag on txq_flags\nfield in order to move to the new API.\n\nThe old Tx offloads API is kept for the meanwhile, in order to enable a\nsmooth transition for PMDs and application to the new API.\n\nSigned-off-by: Shahaf Shuler <shahafs@mellanox.com>\n---\n\nNote:\n\nIn the special case were application is using the old API and the PMD\nhas allready converted to the new one. If there are Tx offloads which can\nbe set only per-port the queue setup may fail.\n\nI choose to treat this case as an exception considering all Tx offloads are\ncurrently defined to be per-queue. New ones to be added should require from\nthe application to move to the new API as well.\n\n---\n doc/guides/nics/features.rst  |  8 ++++++\n lib/librte_ether/rte_ethdev.c | 59 +++++++++++++++++++++++++++++++++++++-\n lib/librte_ether/rte_ethdev.h | 32 ++++++++++++++++++++-\n 3 files changed, 97 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/doc/guides/nics/features.rst b/doc/guides/nics/features.rst\nindex f2c8497c2..bb25a1cee 100644\n--- a/doc/guides/nics/features.rst\n+++ b/doc/guides/nics/features.rst\n@@ -131,6 +131,7 @@ Lock-free Tx queue\n If a PMD advertises DEV_TX_OFFLOAD_MT_LOCKFREE capable, multiple threads can\n invoke rte_eth_tx_burst() concurrently on the same Tx queue without SW lock.\n \n+* **[uses]    rte_eth_txq_conf**: ``offloads:DEV_TX_OFFLOAD_MT_LOCKFREE``.\n * **[provides] rte_eth_dev_info**: ``tx_offload_capa:DEV_TX_OFFLOAD_MT_LOCKFREE``.\n * **[related]  API**: ``rte_eth_tx_burst()``.\n \n@@ -220,6 +221,7 @@ TSO\n \n Supports TCP Segmentation Offloading.\n \n+* **[uses]       rte_eth_txq_conf**: ``offloads:DEV_TX_OFFLOAD_TCP_TSO``.\n * **[uses]       rte_eth_desc_lim**: ``nb_seg_max``, ``nb_mtu_seg_max``.\n * **[uses]       mbuf**: ``mbuf.ol_flags:PKT_TX_TCP_SEG``.\n * **[uses]       mbuf**: ``mbuf.tso_segsz``, ``mbuf.l2_len``, ``mbuf.l3_len``, ``mbuf.l4_len``.\n@@ -510,6 +512,7 @@ VLAN offload\n Supports VLAN offload to hardware.\n \n * **[uses]       rte_eth_rxq_conf**: ``offloads:DEV_RX_OFFLOAD_VLAN_STRIP,DEV_RX_OFFLOAD_VLAN_FILTER,DEV_RX_OFFLOAD_VLAN_EXTEND``.\n+* **[uses]       rte_eth_txq_conf**: ``offloads:DEV_TX_OFFLOAD_VLAN_INSERT``.\n * **[implements] eth_dev_ops**: ``vlan_offload_set``.\n * **[provides]   mbuf**: ``mbuf.ol_flags:PKT_RX_VLAN_STRIPPED``, ``mbuf.vlan_tci``.\n * **[provides]   rte_eth_dev_info**: ``rx_offload_capa:DEV_RX_OFFLOAD_VLAN_STRIP``,\n@@ -526,6 +529,7 @@ QinQ offload\n Supports QinQ (queue in queue) offload.\n \n * **[uses]     rte_eth_rxq_conf**: ``offloads:DEV_RX_OFFLOAD_QINQ_STRIP``.\n+* **[uses]     rte_eth_txq_conf**: ``offloads:DEV_TX_OFFLOAD_QINQ_INSERT``.\n * **[uses]     mbuf**: ``mbuf.ol_flags:PKT_TX_QINQ_PKT``.\n * **[provides] mbuf**: ``mbuf.ol_flags:PKT_RX_QINQ_STRIPPED``, ``mbuf.vlan_tci``,\n    ``mbuf.vlan_tci_outer``.\n@@ -541,6 +545,7 @@ L3 checksum offload\n Supports L3 checksum offload.\n \n * **[uses]     rte_eth_rxq_conf**: ``offloads:DEV_RX_OFFLOAD_IPV4_CKSUM``.\n+* **[uses]     rte_eth_txq_conf**: ``offloads:DEV_TX_OFFLOAD_IPV4_CKSUM``.\n * **[uses]     mbuf**: ``mbuf.ol_flags:PKT_TX_IP_CKSUM``,\n   ``mbuf.ol_flags:PKT_TX_IPV4`` | ``PKT_TX_IPV6``.\n * **[provides] mbuf**: ``mbuf.ol_flags:PKT_RX_IP_CKSUM_UNKNOWN`` |\n@@ -558,6 +563,7 @@ L4 checksum offload\n Supports L4 checksum offload.\n \n * **[uses]     rte_eth_rxq_conf**: ``offloads:DEV_RX_OFFLOAD_UDP_CKSUM,DEV_RX_OFFLOAD_TCP_CKSUM``.\n+* **[uses]     rte_eth_txq_conf**: ``offloads:DEV_TX_OFFLOAD_UDP_CKSUM,DEV_TX_OFFLOAD_TCP_CKSUM,DEV_TX_OFFLOAD_SCTP_CKSUM``.\n * **[uses]     mbuf**: ``mbuf.ol_flags:PKT_TX_IPV4`` | ``PKT_TX_IPV6``,\n   ``mbuf.ol_flags:PKT_TX_L4_NO_CKSUM`` | ``PKT_TX_TCP_CKSUM`` |\n   ``PKT_TX_SCTP_CKSUM`` | ``PKT_TX_UDP_CKSUM``.\n@@ -576,6 +582,7 @@ MACsec offload\n Supports MACsec.\n \n * **[uses]     rte_eth_rxq_conf**: ``offloads:DEV_RX_OFFLOAD_MACSEC_STRIP``.\n+* **[uses]     rte_eth_txq_conf**: ``offloads:DEV_TX_OFFLOAD_MACSEC_INSERT``.\n * **[uses]     mbuf**: ``mbuf.ol_flags:PKT_TX_MACSEC``.\n * **[provides] rte_eth_dev_info**: ``rx_offload_capa:DEV_RX_OFFLOAD_MACSEC_STRIP``,\n   ``tx_offload_capa:DEV_TX_OFFLOAD_MACSEC_INSERT``.\n@@ -589,6 +596,7 @@ Inner L3 checksum\n Supports inner packet L3 checksum.\n \n * **[uses]     rte_eth_rxq_conf**: ``offloads:DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM``.\n+* **[uses]     rte_eth_txq_conf**: ``offloads:DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM``.\n * **[uses]     mbuf**: ``mbuf.ol_flags:PKT_TX_IP_CKSUM``,\n   ``mbuf.ol_flags:PKT_TX_IPV4`` | ``PKT_TX_IPV6``,\n   ``mbuf.ol_flags:PKT_TX_OUTER_IP_CKSUM``,\ndiff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c\nindex b3c10701e..cd79cb1c9 100644\n--- a/lib/librte_ether/rte_ethdev.c\n+++ b/lib/librte_ether/rte_ethdev.c\n@@ -1186,6 +1186,50 @@ rte_eth_rx_queue_setup(uint8_t port_id, uint16_t rx_queue_id,\n \treturn ret;\n }\n \n+/**\n+ * A conversion function from txq_flags API.\n+ */\n+static void\n+rte_eth_convert_txq_flags(const uint32_t txq_flags, uint64_t *tx_offloads)\n+{\n+\tuint64_t offloads = 0;\n+\n+\tif (!(txq_flags & ETH_TXQ_FLAGS_NOMULTSEGS))\n+\t\toffloads |= DEV_TX_OFFLOAD_MULTI_SEGS;\n+\tif (!(txq_flags & ETH_TXQ_FLAGS_NOVLANOFFL))\n+\t\toffloads |= DEV_TX_OFFLOAD_VLAN_INSERT;\n+\tif (!(txq_flags & ETH_TXQ_FLAGS_NOXSUMSCTP))\n+\t\toffloads |= DEV_TX_OFFLOAD_SCTP_CKSUM;\n+\tif (!(txq_flags & ETH_TXQ_FLAGS_NOXSUMUDP))\n+\t\toffloads |= DEV_TX_OFFLOAD_UDP_CKSUM;\n+\tif (!(txq_flags & ETH_TXQ_FLAGS_NOXSUMTCP))\n+\t\toffloads |= DEV_TX_OFFLOAD_TCP_CKSUM;\n+\n+\t*tx_offloads = offloads;\n+}\n+\n+/**\n+ * A conversion function from offloads API.\n+ */\n+static void\n+rte_eth_convert_txq_offloads(const uint64_t tx_offloads, uint32_t *txq_flags)\n+{\n+\tuint32_t flags = 0;\n+\n+\tif (!(tx_offloads & DEV_TX_OFFLOAD_MULTI_SEGS))\n+\t\tflags |= ETH_TXQ_FLAGS_NOMULTSEGS;\n+\tif (!(tx_offloads & DEV_TX_OFFLOAD_VLAN_INSERT))\n+\t\tflags |= ETH_TXQ_FLAGS_NOVLANOFFL;\n+\tif (!(tx_offloads & DEV_TX_OFFLOAD_SCTP_CKSUM))\n+\t\tflags |= ETH_TXQ_FLAGS_NOXSUMSCTP;\n+\tif (!(tx_offloads & DEV_TX_OFFLOAD_UDP_CKSUM))\n+\t\tflags |= ETH_TXQ_FLAGS_NOXSUMUDP;\n+\tif (!(tx_offloads & DEV_TX_OFFLOAD_TCP_CKSUM))\n+\t\tflags |= ETH_TXQ_FLAGS_NOXSUMTCP;\n+\n+\t*txq_flags = flags;\n+}\n+\n int\n rte_eth_tx_queue_setup(uint8_t port_id, uint16_t tx_queue_id,\n \t\t       uint16_t nb_tx_desc, unsigned int socket_id,\n@@ -1193,6 +1237,7 @@ rte_eth_tx_queue_setup(uint8_t port_id, uint16_t tx_queue_id,\n {\n \tstruct rte_eth_dev *dev;\n \tstruct rte_eth_dev_info dev_info;\n+\tstruct rte_eth_txconf local_conf;\n \tvoid **txq;\n \n \tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -EINVAL);\n@@ -1237,8 +1282,20 @@ rte_eth_tx_queue_setup(uint8_t port_id, uint16_t tx_queue_id,\n \tif (tx_conf == NULL)\n \t\ttx_conf = &dev_info.default_txconf;\n \n+\t/*\n+\t * Convert between the offloads API to enable PMDs to support\n+\t * only one of them.\n+\t */\n+\tlocal_conf = *tx_conf;\n+\tif (tx_conf->txq_flags & ETH_TXQ_FLAGS_IGNORE)\n+\t\trte_eth_convert_txq_offloads(tx_conf->offloads,\n+\t\t\t\t\t     &local_conf.txq_flags);\n+\telse\n+\t\trte_eth_convert_txq_flags(tx_conf->txq_flags,\n+\t\t\t\t\t  &local_conf.offloads);\n+\n \treturn (*dev->dev_ops->tx_queue_setup)(dev, tx_queue_id, nb_tx_desc,\n-\t\t\t\t\t       socket_id, tx_conf);\n+\t\t\t\t\t       socket_id, &local_conf);\n }\n \n void\ndiff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h\nindex f424cba04..4ad7dd059 100644\n--- a/lib/librte_ether/rte_ethdev.h\n+++ b/lib/librte_ether/rte_ethdev.h\n@@ -692,6 +692,12 @@ struct rte_eth_vmdq_rx_conf {\n  */\n struct rte_eth_txmode {\n \tenum rte_eth_tx_mq_mode mq_mode; /**< TX multi-queues mode. */\n+\tuint64_t offloads;\n+\t/**\n+\t * Per-port Tx offloads to be set using DEV_TX_OFFLOAD_* flags.\n+\t * Only offloads set on tx_offload_capa field on rte_eth_dev_info\n+\t * structure are allowed to be set.\n+\t */\n \n \t/* For i40e specifically */\n \tuint16_t pvid;\n@@ -733,6 +739,14 @@ struct rte_eth_rxconf {\n #define ETH_TXQ_FLAGS_NOXSUMS \\\n \t\t(ETH_TXQ_FLAGS_NOXSUMSCTP | ETH_TXQ_FLAGS_NOXSUMUDP | \\\n \t\t ETH_TXQ_FLAGS_NOXSUMTCP)\n+#define ETH_TXQ_FLAGS_IGNORE\t0x8000\n+\t/**\n+\t * When set the txq_flags should be ignored,\n+\t * instead per-queue Tx offloads will be set on offloads field\n+\t * located on rte_eth_txq_conf struct.\n+\t * This flag is temporary till the rte_eth_txq_conf.txq_flags\n+\t * API will be deprecated.\n+\t */\n \n /**\n  * A structure used to configure a TX ring of an Ethernet port.\n@@ -745,6 +759,12 @@ struct rte_eth_txconf {\n \n \tuint32_t txq_flags; /**< Set flags for the Tx queue */\n \tuint8_t tx_deferred_start; /**< Do not start queue with rte_eth_dev_start(). */\n+\tuint64_t offloads;\n+\t/**\n+\t * Per-queue Tx offloads to be set  using DEV_TX_OFFLOAD_* flags.\n+\t * Only offloads set on tx_queue_offload_capa field on rte_eth_dev_info\n+\t * structure are allowed to be set.\n+\t */\n };\n \n /**\n@@ -969,6 +989,8 @@ struct rte_eth_conf {\n /**< Multiple threads can invoke rte_eth_tx_burst() concurrently on the same\n  * tx queue without SW lock.\n  */\n+#define DEV_TX_OFFLOAD_MULTI_SEGS\t0x00008000\n+/**< multi segment send is supported. */\n \n struct rte_pci_device;\n \n@@ -991,9 +1013,12 @@ struct rte_eth_dev_info {\n \tuint16_t max_vmdq_pools; /**< Maximum number of VMDq pools. */\n \tuint64_t rx_offload_capa;\n \t/**< Device per port RX offload capabilities. */\n-\tuint32_t tx_offload_capa; /**< Device TX offload capabilities. */\n+\tuint64_t tx_offload_capa;\n+\t/**< Device per port TX offload capabilities. */\n \tuint64_t rx_queue_offload_capa;\n \t/**< Device per queue RX offload capabilities. */\n+\tuint64_t tx_queue_offload_capa;\n+\t/**< Device per queue TX offload capabilities. */\n \tuint16_t reta_size;\n \t/**< Device redirection table size, the total number of entries. */\n \tuint8_t hash_key_size; /**< Hash key size in bytes */\n@@ -2024,6 +2049,11 @@ int rte_eth_rx_queue_setup(uint8_t port_id, uint16_t rx_queue_id,\n  *   - The *txq_flags* member contains flags to pass to the TX queue setup\n  *     function to configure the behavior of the TX queue. This should be set\n  *     to 0 if no special configuration is required.\n+ *     This API is obsolete and will be deprecated. Applications\n+ *     should set it to ETH_TXQ_FLAGS_IGNORE and use\n+ *     the offloads field below.\n+ *   - The *offloads* member contains Tx offloads to be enabled.\n+ *     Offloads which are not set cannot be used on the datapath.\n  *\n  *     Note that setting *tx_free_thresh* or *tx_rs_thresh* value to 0 forces\n  *     the transmit function to use default values.\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "2/2"
    ]
}