get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 79594,
    "url": "http://patches.dpdk.org/api/patches/79594/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1601879207-6504-2-git-send-email-viacheslavo@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": "<1601879207-6504-2-git-send-email-viacheslavo@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1601879207-6504-2-git-send-email-viacheslavo@nvidia.com",
    "date": "2020-10-05T06:26:43",
    "name": "[1/5] ethdev: introduce Rx buffer split",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "3d124cd4ed1fd1b4cfb23bdb6ef2dfb5a3b26d52",
    "submitter": {
        "id": 1926,
        "url": "http://patches.dpdk.org/api/people/1926/?format=api",
        "name": "Slava Ovsiienko",
        "email": "viacheslavo@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/1601879207-6504-2-git-send-email-viacheslavo@nvidia.com/mbox/",
    "series": [
        {
            "id": 12682,
            "url": "http://patches.dpdk.org/api/series/12682/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12682",
            "date": "2020-10-05T06:26:42",
            "name": "ethdev: introduce Rx buffer split",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/12682/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/79594/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/79594/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 519A6A04BA;\n\tMon,  5 Oct 2020 08:27:56 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 80FFC1B812;\n\tMon,  5 Oct 2020 08:26:57 +0200 (CEST)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 059272C27\n for <dev@dpdk.org>; Mon,  5 Oct 2020 08:26:49 +0200 (CEST)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n viacheslavo@nvidia.com) with SMTP; 5 Oct 2020 09:26:47 +0300",
            "from nvidia.com (pegasus12.mtr.labs.mlnx [10.210.17.40])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 0956QlRu012304;\n Mon, 5 Oct 2020 09:26:47 +0300"
        ],
        "From": "Viacheslav Ovsiienko <viacheslavo@nvidia.com>",
        "To": "dev@dpdk.org",
        "Cc": "thomasm@monjalon.net, stephen@networkplumber.org, ferruh.yigit@intel.com,\n olivier.matz@6wind.com, jerinjacobk@gmail.com,\n maxime.coquelin@redhat.com, david.marchand@redhat.com,\n arybchenko@solarflare.com",
        "Date": "Mon,  5 Oct 2020 06:26:43 +0000",
        "Message-Id": "<1601879207-6504-2-git-send-email-viacheslavo@nvidia.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1601879207-6504-1-git-send-email-viacheslavo@nvidia.com>",
        "References": "\n <MWHPR12MB136076E652230CEBD6EE6562DF5F0@MWHPR12MB1360.namprd12.prod.outlook.com>\n <1601879207-6504-1-git-send-email-viacheslavo@nvidia.com>",
        "Subject": "[dpdk-dev] [PATCH 1/5] ethdev: introduce Rx buffer split",
        "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 <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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "The DPDK datapath in the transmit direction is very flexible.\nAn application can build the multi-segment packet and manages\nalmost all data aspects - the memory pools where segments\nare allocated from, the segment lengths, the memory attributes\nlike external buffers, registered for DMA, etc.\n\nIn the receiving direction, the datapath is much less flexible,\nan application can only specify the memory pool to configure the\nreceiving queue and nothing more. In order to extend receiving\ndatapath capabilities it is proposed to add the way to provide\nextended information how to split the packets being received.\n\nThe following structure is introduced to specify the Rx packet\nsegment:\n\nstruct rte_eth_rxseg {\n    struct rte_mempool *mp; /* memory pools to allocate segment from */\n    uint16_t length; /* segment maximal data length */\n    uint16_t offset; /* data offset from beginning of mbuf data buffer */\n    uint32_t reserved; /* reserved field */\n};\n\nThe new routine rte_eth_rx_queue_setup_ex() is introduced to\nsetup the given Rx queue using the new extended Rx packet segment\ndescription:\n\nint\nrte_eth_rx_queue_setup_ex(uint16_t port_id, uint16_t rx_queue_id,\n                          uint16_t nb_rx_desc, unsigned int socket_id,\n                          const struct rte_eth_rxconf *rx_conf,\n\t\t          const struct rte_eth_rxseg *rx_seg,\n                          uint16_t n_seg)\n\nThis routine presents the two new parameters:\n    rx_seg - pointer the array of segment descriptions, each element\n             describes the memory pool, maximal data length, initial\n             data offset from the beginning of data buffer in mbuf\n    n_seg - number of elements in the array\n\nThe new offload flag DEV_RX_OFFLOAD_BUFFER_SPLIT in device\ncapabilities is introduced to present the way for PMD to report to\napplication about supporting Rx packet split to configurable\nsegments. Prior invoking the rte_eth_rx_queue_setup_ex() routine\napplication should check DEV_RX_OFFLOAD_BUFFER_SPLIT flag.\n\nIf the Rx queue is configured with new routine the packets being\nreceived will be split into multiple segments pushed to the mbufs\nwith specified attributes. The PMD will allocate the first mbuf\nfrom the pool specified in the first segment descriptor and puts\nthe data staring at specified offset in the allocated mbuf data\nbuffer. If packet length exceeds the specified segment length\nthe next mbuf will be allocated according to the next segment\ndescriptor (if any) and data will be put in its data buffer at\nspecified offset and not exceeding specified length. If there is\nno next descriptor the next mbuf will be allocated and filled in the\nsame way (from the same pool and with the same buffer offset/length)\nas the current one.\n\nFor example, let's suppose we configured the Rx queue with the\nfollowing segments:\n    seg0 - pool0, len0=14B, off0=RTE_PKTMBUF_HEADROOM\n    seg1 - pool1, len1=20B, off1=0B\n    seg2 - pool2, len2=20B, off2=0B\n    seg3 - pool3, len3=512B, off3=0B\n\nThe packet 46 bytes long will look like the following:\n    seg0 - 14B long @ RTE_PKTMBUF_HEADROOM in mbuf from pool0\n    seg1 - 20B long @ 0 in mbuf from pool1\n    seg2 - 12B long @ 0 in mbuf from pool2\n\nThe packet 1500 bytes long will look like the following:\n    seg0 - 14B @ RTE_PKTMBUF_HEADROOM in mbuf from pool0\n    seg1 - 20B @ 0 in mbuf from pool1\n    seg2 - 20B @ 0 in mbuf from pool2\n    seg3 - 512B @ 0 in mbuf from pool3\n    seg4 - 512B @ 0 in mbuf from pool3\n    seg5 - 422B @ 0 in mbuf from pool3\n\nThe offload DEV_RX_OFFLOAD_SCATTER must be present and\nconfigured to support new buffer split feature (if n_seg\nis greater than one).\n\nThe new approach would allow splitting the ingress packets into\nmultiple parts pushed to the memory with different attributes.\nFor example, the packet headers can be pushed to the embedded\ndata buffers within mbufs and the application data into\nthe external buffers attached to mbufs allocated from the\ndifferent memory pools. The memory attributes for the split\nparts may differ either - for example the application data\nmay be pushed into the external memory located on the dedicated\nphysical device, say GPU or NVMe. This would improve the DPDK\nreceiving datapath flexibility with preserving compatibility\nwith existing API.\n\nAlso, the proposed segment description might be used to specify\nRx packet split for some other features. For example, provide\nthe way to specify the extra memory pool for the Header Split\nfeature of some Intel PMD.\n\nSigned-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>\n---\n doc/guides/nics/features.rst           |  15 +++\n doc/guides/rel_notes/release_20_11.rst |   6 ++\n lib/librte_ethdev/rte_ethdev.c         | 172 +++++++++++++++++++++++++++++++++\n lib/librte_ethdev/rte_ethdev.h         |  16 +++\n lib/librte_ethdev/rte_ethdev_driver.h  |  10 ++\n 5 files changed, 219 insertions(+)",
    "diff": "diff --git a/doc/guides/nics/features.rst b/doc/guides/nics/features.rst\nindex dd8c955..ac9dfd7 100644\n--- a/doc/guides/nics/features.rst\n+++ b/doc/guides/nics/features.rst\n@@ -185,6 +185,21 @@ Supports receiving segmented mbufs.\n * **[related]    eth_dev_ops**: ``rx_pkt_burst``.\n \n \n+.. _nic_features_buffer_split:\n+\n+Buffer Split on Rx\n+------------\n+\n+Scatters the packets being received on specified boundaries to segmented mbufs.\n+\n+* **[uses]       rte_eth_rxconf,rte_eth_rxmode**: ``offloads:DEV_RX_OFFLOAD_BUFFER_SPLIT``.\n+* **[implements] datapath**: ``Buffer Split functionality``.\n+* **[implements] rte_eth_dev_data**: ``buffer_split``.\n+* **[provides]   rte_eth_dev_info**: ``rx_offload_capa:DEV_RX_OFFLOAD_BUFFER_SPLIT``.\n+* **[provides]   eth_dev_ops**: ``rxq_info_get:buffer_split``.\n+* **[related] API**: ``rte_eth_rx_queue_setup_ex()``.\n+\n+\n .. _nic_features_lro:\n \n LRO\ndiff --git a/doc/guides/rel_notes/release_20_11.rst b/doc/guides/rel_notes/release_20_11.rst\nindex 4bcf220..8da5cc9 100644\n--- a/doc/guides/rel_notes/release_20_11.rst\n+++ b/doc/guides/rel_notes/release_20_11.rst\n@@ -55,6 +55,12 @@ New Features\n      Also, make sure to start the actual text at the margin.\n      =======================================================\n \n+* **Introduced extended buffer description for receiving.**\n+\n+  * Added extended Rx queue setup routine\n+  * Added description for Rx segment sizes\n+  * Added capability to specify the memory pool for each segment\n+\n * **Updated Cisco enic driver.**\n \n   * Added support for VF representors with single-queue Tx/Rx and flow API\ndiff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c\nindex dfe5c1b..ace7567 100644\n--- a/lib/librte_ethdev/rte_ethdev.c\n+++ b/lib/librte_ethdev/rte_ethdev.c\n@@ -128,6 +128,7 @@ struct rte_eth_xstats_name_off {\n \tRTE_RX_OFFLOAD_BIT2STR(SCTP_CKSUM),\n \tRTE_RX_OFFLOAD_BIT2STR(OUTER_UDP_CKSUM),\n \tRTE_RX_OFFLOAD_BIT2STR(RSS_HASH),\n+\tRTE_RX_OFFLOAD_BIT2STR(BUFFER_SPLIT),\n };\n \n #undef RTE_RX_OFFLOAD_BIT2STR\n@@ -1933,6 +1934,177 @@ struct rte_eth_dev *\n }\n \n int\n+rte_eth_rx_queue_setup_ex(uint16_t port_id, uint16_t rx_queue_id,\n+\t\t\t  uint16_t nb_rx_desc, unsigned int socket_id,\n+\t\t\t  const struct rte_eth_rxconf *rx_conf,\n+\t\t\t  const struct rte_eth_rxseg *rx_seg, uint16_t n_seg)\n+{\n+\tint ret;\n+\tuint16_t seg_idx;\n+\tuint32_t mbp_buf_size;\n+\tstruct rte_eth_dev *dev;\n+\tstruct rte_eth_dev_info dev_info;\n+\tstruct rte_eth_rxconf local_conf;\n+\tvoid **rxq;\n+\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -EINVAL);\n+\n+\tdev = &rte_eth_devices[port_id];\n+\tif (rx_queue_id >= dev->data->nb_rx_queues) {\n+\t\tRTE_ETHDEV_LOG(ERR, \"Invalid RX queue_id=%u\\n\", rx_queue_id);\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tif (rx_seg == NULL) {\n+\t\tRTE_ETHDEV_LOG(ERR, \"Invalid null description pointer\\n\");\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tif (n_seg == 0) {\n+\t\tRTE_ETHDEV_LOG(ERR, \"Invalid zero description number\\n\");\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tRTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->rx_queue_setup_ex, -ENOTSUP);\n+\n+\t/*\n+\t * Check the size of the mbuf data buffer.\n+\t * This value must be provided in the private data of the memory pool.\n+\t * First check that the memory pool has a valid private data.\n+\t */\n+\tret = rte_eth_dev_info_get(port_id, &dev_info);\n+\tif (ret != 0)\n+\t\treturn ret;\n+\n+\tfor (seg_idx = 0; seg_idx < n_seg; seg_idx++) {\n+\t\tstruct rte_mempool *mp = rx_seg[seg_idx].mp;\n+\n+\t\tif (mp->private_data_size <\n+\t\t\t\tsizeof(struct rte_pktmbuf_pool_private)) {\n+\t\t\tRTE_ETHDEV_LOG(ERR, \"%s private_data_size %d < %d\\n\",\n+\t\t\t\tmp->name, (int)mp->private_data_size,\n+\t\t\t\t(int)sizeof(struct rte_pktmbuf_pool_private));\n+\t\t\treturn -ENOSPC;\n+\t\t}\n+\n+\t\tmbp_buf_size = rte_pktmbuf_data_room_size(mp);\n+\t\tif (mbp_buf_size <\n+\t\t\t rx_seg[seg_idx].length + rx_seg[seg_idx].offset) {\n+\t\t\tRTE_ETHDEV_LOG(ERR,\n+\t\t\t\t\"%s mbuf_data_room_size %d < %d\"\n+\t\t\t\t\" (segment length=%d + segment offset=%d)\\n\",\n+\t\t\t\tmp->name, (int)mbp_buf_size,\n+\t\t\t\t(int)(rx_seg[seg_idx].length +\n+\t\t\t\t      rx_seg[seg_idx].offset),\n+\t\t\t\t(int)rx_seg[seg_idx].length,\n+\t\t\t\t(int)rx_seg[seg_idx].offset);\n+\t\t\treturn -EINVAL;\n+\t\t}\n+\t}\n+\n+\t/* Use default specified by driver, if nb_rx_desc is zero */\n+\tif (nb_rx_desc == 0) {\n+\t\tnb_rx_desc = dev_info.default_rxportconf.ring_size;\n+\t\t/* If driver default is also zero, fall back on EAL default */\n+\t\tif (nb_rx_desc == 0)\n+\t\t\tnb_rx_desc = RTE_ETH_DEV_FALLBACK_RX_RINGSIZE;\n+\t}\n+\n+\tif (nb_rx_desc > dev_info.rx_desc_lim.nb_max ||\n+\t\t\tnb_rx_desc < dev_info.rx_desc_lim.nb_min ||\n+\t\t\tnb_rx_desc % dev_info.rx_desc_lim.nb_align != 0) {\n+\n+\t\tRTE_ETHDEV_LOG(ERR,\n+\t\t\t\"Invalid value for nb_rx_desc(=%hu), should be: \"\n+\t\t\t\"<= %hu, >= %hu, and a product of %hu\\n\",\n+\t\t\tnb_rx_desc, dev_info.rx_desc_lim.nb_max,\n+\t\t\tdev_info.rx_desc_lim.nb_min,\n+\t\t\tdev_info.rx_desc_lim.nb_align);\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tif (dev->data->dev_started &&\n+\t\t!(dev_info.dev_capa &\n+\t\t\tRTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP))\n+\t\treturn -EBUSY;\n+\n+\tif (dev->data->dev_started &&\n+\t\t(dev->data->rx_queue_state[rx_queue_id] !=\n+\t\t\tRTE_ETH_QUEUE_STATE_STOPPED))\n+\t\treturn -EBUSY;\n+\n+\trxq = dev->data->rx_queues;\n+\tif (rxq[rx_queue_id]) {\n+\t\tRTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->rx_queue_release,\n+\t\t\t\t\t-ENOTSUP);\n+\t\t(*dev->dev_ops->rx_queue_release)(rxq[rx_queue_id]);\n+\t\trxq[rx_queue_id] = NULL;\n+\t}\n+\n+\tif (rx_conf == NULL)\n+\t\trx_conf = &dev_info.default_rxconf;\n+\n+\tlocal_conf = *rx_conf;\n+\n+\t/*\n+\t * If an offloading has already been enabled in\n+\t * rte_eth_dev_configure(), it has been enabled on all queues,\n+\t * so there is no need to enable it in this queue again.\n+\t * The local_conf.offloads input to underlying PMD only carries\n+\t * those offloadings which are only enabled on this queue and\n+\t * not enabled on all queues.\n+\t */\n+\tlocal_conf.offloads &= ~dev->data->dev_conf.rxmode.offloads;\n+\n+\t/*\n+\t * New added offloadings for this queue are those not enabled in\n+\t * rte_eth_dev_configure() and they must be per-queue type.\n+\t * A pure per-port offloading can't be enabled on a queue while\n+\t * disabled on another queue. A pure per-port offloading can't\n+\t * be enabled for any queue as new added one if it hasn't been\n+\t * enabled in rte_eth_dev_configure().\n+\t */\n+\tif ((local_conf.offloads & dev_info.rx_queue_offload_capa) !=\n+\t     local_conf.offloads) {\n+\t\tRTE_ETHDEV_LOG(ERR,\n+\t\t\t\"Ethdev port_id=%d rx_queue_id=%d, new added offloads\"\n+\t\t\t\" 0x%\"PRIx64\" must be within per-queue offload\"\n+\t\t\t\" capabilities 0x%\"PRIx64\" in %s()\\n\",\n+\t\t\tport_id, rx_queue_id, local_conf.offloads,\n+\t\t\tdev_info.rx_queue_offload_capa,\n+\t\t\t__func__);\n+\t\treturn -EINVAL;\n+\t}\n+\n+\t/*\n+\t * If LRO is enabled, check that the maximum aggregated packet\n+\t * size is supported by the configured device.\n+\t */\n+\tif (local_conf.offloads & DEV_RX_OFFLOAD_TCP_LRO) {\n+\t\tif (dev->data->dev_conf.rxmode.max_lro_pkt_size == 0)\n+\t\t\tdev->data->dev_conf.rxmode.max_lro_pkt_size =\n+\t\t\t\tdev->data->dev_conf.rxmode.max_rx_pkt_len;\n+\t\tint ret = check_lro_pkt_size(port_id,\n+\t\t\t\tdev->data->dev_conf.rxmode.max_lro_pkt_size,\n+\t\t\t\tdev->data->dev_conf.rxmode.max_rx_pkt_len,\n+\t\t\t\tdev_info.max_lro_pkt_size);\n+\t\tif (ret != 0)\n+\t\t\treturn ret;\n+\t}\n+\n+\tret = (*dev->dev_ops->rx_queue_setup_ex)(dev, rx_queue_id, nb_rx_desc,\n+\t\t\t\t\t\t socket_id, &local_conf,\n+\t\t\t\t\t\t rx_seg, n_seg);\n+\tif (!ret) {\n+\t\tif (!dev->data->min_rx_buf_size ||\n+\t\t    dev->data->min_rx_buf_size > mbp_buf_size)\n+\t\t\tdev->data->min_rx_buf_size = mbp_buf_size;\n+\t}\n+\n+\treturn eth_err(port_id, ret);\n+}\n+\n+int\n rte_eth_rx_hairpin_queue_setup(uint16_t port_id, uint16_t rx_queue_id,\n \t\t\t       uint16_t nb_rx_desc,\n \t\t\t       const struct rte_eth_hairpin_conf *conf)\ndiff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h\nindex 645a186..553900b 100644\n--- a/lib/librte_ethdev/rte_ethdev.h\n+++ b/lib/librte_ethdev/rte_ethdev.h\n@@ -970,6 +970,16 @@ struct rte_eth_txmode {\n };\n \n /**\n+ * A structure used to configure an RX packet segment to split.\n+ */\n+struct rte_eth_rxseg {\n+\tstruct rte_mempool *mp; /**< Memory pools to allocate segment from */\n+\tuint16_t length; /**< Segment maximal data length */\n+\tuint16_t offset; /**< Data offset from beggining of mbuf data buffer */\n+\tuint32_t reserved; /**< Reserved field */\n+};\n+\n+/**\n  * A structure used to configure an RX ring of an Ethernet port.\n  */\n struct rte_eth_rxconf {\n@@ -1260,6 +1270,7 @@ struct rte_eth_conf {\n #define DEV_RX_OFFLOAD_SCTP_CKSUM\t0x00020000\n #define DEV_RX_OFFLOAD_OUTER_UDP_CKSUM  0x00040000\n #define DEV_RX_OFFLOAD_RSS_HASH\t\t0x00080000\n+#define DEV_RX_OFFLOAD_BUFFER_SPLIT     0x00100000\n \n #define DEV_RX_OFFLOAD_CHECKSUM (DEV_RX_OFFLOAD_IPV4_CKSUM | \\\n \t\t\t\t DEV_RX_OFFLOAD_UDP_CKSUM | \\\n@@ -2020,6 +2031,11 @@ int rte_eth_rx_queue_setup(uint16_t port_id, uint16_t rx_queue_id,\n \t\tconst struct rte_eth_rxconf *rx_conf,\n \t\tstruct rte_mempool *mb_pool);\n \n+int rte_eth_rx_queue_setup_ex(uint16_t port_id, uint16_t rx_queue_id,\n+\t\tuint16_t nb_rx_desc, unsigned int socket_id,\n+\t\tconst struct rte_eth_rxconf *rx_conf,\n+\t\tconst struct rte_eth_rxseg *rx_seg, uint16_t n_seg);\n+\n /**\n  * @warning\n  * @b EXPERIMENTAL: this API may change, or be removed, without prior notice\ndiff --git a/lib/librte_ethdev/rte_ethdev_driver.h b/lib/librte_ethdev/rte_ethdev_driver.h\nindex 04ac8e9..de4d7de 100644\n--- a/lib/librte_ethdev/rte_ethdev_driver.h\n+++ b/lib/librte_ethdev/rte_ethdev_driver.h\n@@ -264,6 +264,15 @@ typedef int (*eth_rx_queue_setup_t)(struct rte_eth_dev *dev,\n \t\t\t\t    struct rte_mempool *mb_pool);\n /**< @internal Set up a receive queue of an Ethernet device. */\n \n+typedef int (*eth_rx_queue_setup_ex_t)(struct rte_eth_dev *dev,\n+\t\t\t\t       uint16_t rx_queue_id,\n+\t\t\t\t       uint16_t nb_rx_desc,\n+\t\t\t\t       unsigned int socket_id,\n+\t\t\t\t       const struct rte_eth_rxconf *rx_conf,\n+\t\t\t\t       const struct rte_eth_rxseg *rx_seg,\n+\t\t\t\t       uint16_t n_seg);\n+/**< @internal extended Set up a receive queue of an Ethernet device. */\n+\n typedef int (*eth_tx_queue_setup_t)(struct rte_eth_dev *dev,\n \t\t\t\t    uint16_t tx_queue_id,\n \t\t\t\t    uint16_t nb_tx_desc,\n@@ -630,6 +639,7 @@ struct eth_dev_ops {\n \teth_queue_start_t          tx_queue_start;/**< Start TX for a queue. */\n \teth_queue_stop_t           tx_queue_stop; /**< Stop TX for a queue. */\n \teth_rx_queue_setup_t       rx_queue_setup;/**< Set up device RX queue. */\n+\teth_rx_queue_setup_ex_t    rx_queue_setup_ex;/**< Extended RX setup. */\n \teth_queue_release_t        rx_queue_release; /**< Release RX queue. */\n \n \teth_rx_enable_intr_t       rx_queue_intr_enable;  /**< Enable Rx queue interrupt. */\n",
    "prefixes": [
        "1/5"
    ]
}