get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 41852,
    "url": "http://patches.dpdk.org/api/patches/41852/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180628215235.106069-5-yong.liu@intel.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": "<20180628215235.106069-5-yong.liu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180628215235.106069-5-yong.liu@intel.com",
    "date": "2018-06-28T21:52:28",
    "name": "[v3,04/11] net/virtio-user: add mrg_rxbuf and in_order vdev parameters",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "61435dc862e79e94fc6daf44c8e47a861a15f125",
    "submitter": {
        "id": 17,
        "url": "http://patches.dpdk.org/api/people/17/?format=api",
        "name": "Marvin Liu",
        "email": "yong.liu@intel.com"
    },
    "delegate": {
        "id": 2642,
        "url": "http://patches.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20180628215235.106069-5-yong.liu@intel.com/mbox/",
    "series": [
        {
            "id": 296,
            "url": "http://patches.dpdk.org/api/series/296/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=296",
            "date": "2018-06-28T21:52:24",
            "name": "support in-order feature",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/296/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/41852/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/41852/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 40A611B3A4;\n\tThu, 28 Jun 2018 16:07:00 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id 1CC8F1DB9\n\tfor <dev@dpdk.org>; Thu, 28 Jun 2018 16:06:50 +0200 (CEST)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t28 Jun 2018 07:06:50 -0700",
            "from dpdk-test32.sh.intel.com ([10.67.119.193])\n\tby FMSMGA003.fm.intel.com with ESMTP; 28 Jun 2018 07:06:49 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.51,283,1526367600\"; d=\"scan'208\";a=\"60850355\"",
        "From": "Marvin Liu <yong.liu@intel.com>",
        "To": "maxime.coquelin@redhat.com,\n\ttiwei.bie@intel.com",
        "Cc": "zhihong.wang@intel.com,\n\tdev@dpdk.org,\n\tMarvin Liu <yong.liu@intel.com>",
        "Date": "Fri, 29 Jun 2018 05:52:28 +0800",
        "Message-Id": "<20180628215235.106069-5-yong.liu@intel.com>",
        "X-Mailer": "git-send-email 2.17.0",
        "In-Reply-To": "<20180628215235.106069-1-yong.liu@intel.com>",
        "References": "<20180628215235.106069-1-yong.liu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v3 04/11] net/virtio-user: add mrg_rxbuf and\n\tin_order vdev parameters",
        "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": "Add parameters for configuring VIRTIO_NET_F_MRG_RXBUF and\nVIRTIO_F_IN_ORDER feature bits. If feature is disabled, also update\ncorresponding unsupported feature bit.\n\nSigned-off-by: Marvin Liu <yong.liu@intel.com>",
    "diff": "diff --git a/drivers/net/virtio/virtio_user/virtio_user_dev.c b/drivers/net/virtio/virtio_user/virtio_user_dev.c\nindex 0fe3b377d..e90257f5d 100644\n--- a/drivers/net/virtio/virtio_user/virtio_user_dev.c\n+++ b/drivers/net/virtio/virtio_user/virtio_user_dev.c\n@@ -375,7 +375,8 @@ virtio_user_dev_setup(struct virtio_user_dev *dev)\n \n int\n virtio_user_dev_init(struct virtio_user_dev *dev, char *path, int queues,\n-\t\t     int cq, int queue_size, const char *mac, char **ifname)\n+\t\t     int cq, int queue_size, const char *mac, char **ifname,\n+\t\t     int mrg_rxbuf, int in_order)\n {\n \tpthread_mutex_init(&dev->mutex, NULL);\n \tsnprintf(dev->path, PATH_MAX, \"%s\", path);\n@@ -420,6 +421,16 @@ virtio_user_dev_init(struct virtio_user_dev *dev, char *path, int queues,\n \t\tdev->device_features = VIRTIO_USER_SUPPORTED_FEATURES;\n \t}\n \n+\tif (!mrg_rxbuf) {\n+\t\tdev->device_features &= ~(1ull << VIRTIO_NET_F_MRG_RXBUF);\n+\t\tdev->unsupported_features |= (1ull << VIRTIO_NET_F_MRG_RXBUF);\n+\t}\n+\n+\tif (!in_order) {\n+\t\tdev->device_features &= ~(1ull << VIRTIO_F_IN_ORDER);\n+\t\tdev->unsupported_features |= (1ull << VIRTIO_F_IN_ORDER);\n+\t}\n+\n \tif (dev->mac_specified)\n \t\tdev->device_features |= (1ull << VIRTIO_NET_F_MAC);\n \telse {\ndiff --git a/drivers/net/virtio/virtio_user/virtio_user_dev.h b/drivers/net/virtio/virtio_user/virtio_user_dev.h\nindex c23ddfcc5..d6e0e137b 100644\n--- a/drivers/net/virtio/virtio_user/virtio_user_dev.h\n+++ b/drivers/net/virtio/virtio_user/virtio_user_dev.h\n@@ -48,7 +48,8 @@ int is_vhost_user_by_type(const char *path);\n int virtio_user_start_device(struct virtio_user_dev *dev);\n int virtio_user_stop_device(struct virtio_user_dev *dev);\n int virtio_user_dev_init(struct virtio_user_dev *dev, char *path, int queues,\n-\t\t\t int cq, int queue_size, const char *mac, char **ifname);\n+\t\t\t int cq, int queue_size, const char *mac, char **ifname,\n+\t\t\t int mrg_rxbuf, int in_order);\n void virtio_user_dev_uninit(struct virtio_user_dev *dev);\n void virtio_user_handle_cq(struct virtio_user_dev *dev, uint16_t queue_idx);\n uint8_t virtio_user_handle_mq(struct virtio_user_dev *dev, uint16_t q_pairs);\ndiff --git a/drivers/net/virtio/virtio_user_ethdev.c b/drivers/net/virtio/virtio_user_ethdev.c\nindex 416dbdcf8..509c9b1b3 100644\n--- a/drivers/net/virtio/virtio_user_ethdev.c\n+++ b/drivers/net/virtio/virtio_user_ethdev.c\n@@ -358,8 +358,12 @@ static const char *valid_args[] = {\n \tVIRTIO_USER_ARG_QUEUE_SIZE,\n #define VIRTIO_USER_ARG_INTERFACE_NAME \"iface\"\n \tVIRTIO_USER_ARG_INTERFACE_NAME,\n-#define VIRTIO_USER_ARG_SERVER_MODE \"server\"\n+#define VIRTIO_USER_ARG_SERVER_MODE    \"server\"\n \tVIRTIO_USER_ARG_SERVER_MODE,\n+#define VIRTIO_USER_ARG_MRG_RXBUF      \"mrg_rxbuf\"\n+\tVIRTIO_USER_ARG_MRG_RXBUF,\n+#define VIRTIO_USER_ARG_IN_ORDER       \"in_order\"\n+\tVIRTIO_USER_ARG_IN_ORDER,\n \tNULL\n };\n \n@@ -462,6 +466,8 @@ virtio_user_pmd_probe(struct rte_vdev_device *dev)\n \tuint64_t cq = VIRTIO_USER_DEF_CQ_EN;\n \tuint64_t queue_size = VIRTIO_USER_DEF_Q_SZ;\n \tuint64_t server_mode = VIRTIO_USER_DEF_SERVER_MODE;\n+\tuint64_t mrg_rxbuf = 1;\n+\tuint64_t in_order = 1;\n \tchar *path = NULL;\n \tchar *ifname = NULL;\n \tchar *mac_addr = NULL;\n@@ -561,6 +567,24 @@ virtio_user_pmd_probe(struct rte_vdev_device *dev)\n \t\tgoto end;\n \t}\n \n+\tif (rte_kvargs_count(kvlist, VIRTIO_USER_ARG_MRG_RXBUF) == 1) {\n+\t\tif (rte_kvargs_process(kvlist, VIRTIO_USER_ARG_MRG_RXBUF,\n+\t\t\t\t       &get_integer_arg, &mrg_rxbuf) < 0) {\n+\t\t\tPMD_INIT_LOG(ERR, \"error to parse %s\",\n+\t\t\t\t     VIRTIO_USER_ARG_MRG_RXBUF);\n+\t\t\tgoto end;\n+\t\t}\n+\t}\n+\n+\tif (rte_kvargs_count(kvlist, VIRTIO_USER_ARG_IN_ORDER) == 1) {\n+\t\tif (rte_kvargs_process(kvlist, VIRTIO_USER_ARG_IN_ORDER,\n+\t\t\t\t       &get_integer_arg, &in_order) < 0) {\n+\t\t\tPMD_INIT_LOG(ERR, \"error to parse %s\",\n+\t\t\t\t     VIRTIO_USER_ARG_IN_ORDER);\n+\t\t\tgoto end;\n+\t\t}\n+\t}\n+\n \tif (rte_eal_process_type() == RTE_PROC_PRIMARY) {\n \t\tstruct virtio_user_dev *vu_dev;\n \n@@ -577,7 +601,8 @@ virtio_user_pmd_probe(struct rte_vdev_device *dev)\n \t\telse\n \t\t\tvu_dev->is_server = false;\n \t\tif (virtio_user_dev_init(hw->virtio_user_dev, path, queues, cq,\n-\t\t\t\t queue_size, mac_addr, &ifname) < 0) {\n+\t\t\t\tqueue_size, mac_addr, &ifname, mrg_rxbuf,\n+\t\t\t\tin_order) < 0) {\n \t\t\tPMD_INIT_LOG(ERR, \"virtio_user_dev_init fails\");\n \t\t\tvirtio_user_eth_dev_free(eth_dev);\n \t\t\tgoto end;\n@@ -655,4 +680,6 @@ RTE_PMD_REGISTER_PARAM_STRING(net_virtio_user,\n \t\"cq=<int> \"\n \t\"queue_size=<int> \"\n \t\"queues=<int> \"\n-\t\"iface=<string>\");\n+\t\"iface=<string>\"\n+\t\"mrg_rxbuf=<0|1>\"\n+\t\"in_order=<0|1>\");\n",
    "prefixes": [
        "v3",
        "04/11"
    ]
}