Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/100789/?format=api
http://patches.dpdk.org/api/patches/100789/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211007184350.73858-22-srikanth.k@oneconvergence.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": "<20211007184350.73858-22-srikanth.k@oneconvergence.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20211007184350.73858-22-srikanth.k@oneconvergence.com", "date": "2021-10-07T18:43:30", "name": "[v2,21/41] net/mlx5: add set MTU routine", "commit_ref": null, "pull_url": null, "state": "deferred", "archived": false, "hash": "71b7dbf4979dfd69fb9cee9ec8b82138ff9a9bb9", "submitter": { "id": 2368, "url": "http://patches.dpdk.org/api/people/2368/?format=api", "name": "Srikanth Kaka", "email": "srikanth.k@oneconvergence.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/20211007184350.73858-22-srikanth.k@oneconvergence.com/mbox/", "series": [ { "id": 19455, "url": "http://patches.dpdk.org/api/series/19455/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=19455", "date": "2021-10-07T18:43:09", "name": "add MLX5 FreeBSD support", "version": 2, "mbox": "http://patches.dpdk.org/series/19455/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/100789/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/100789/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 952F4A034F;\n\tFri, 8 Oct 2021 12:57:55 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id ECB7C411AB;\n\tFri, 8 Oct 2021 12:56:21 +0200 (CEST)", "from mail-pj1-f42.google.com (mail-pj1-f42.google.com\n [209.85.216.42]) by mails.dpdk.org (Postfix) with ESMTP id 32237411E0\n for <dev@dpdk.org>; Thu, 7 Oct 2021 20:45:11 +0200 (CEST)", "by mail-pj1-f42.google.com with SMTP id\n qe4-20020a17090b4f8400b0019f663cfcd1so7616324pjb.1\n for <dev@dpdk.org>; Thu, 07 Oct 2021 11:45:11 -0700 (PDT)", "from srikanth-ThinkPad-T450.domain.name ([136.185.113.102])\n by smtp.gmail.com with ESMTPSA id c11sm3311586pji.38.2021.10.07.11.45.07\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 07 Oct 2021 11:45:09 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oneconvergence.com; s=google;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=H3NgidgZiTNIp4uF0DKOoDIN3xC1hgUaGOceJB03YXQ=;\n b=PFjv2Ss8qhVejO+RKTbitlCbQ9ngA6i0TEX2kzxCKeTtDPHabwhvCY2qGcBpdxjUhg\n 9DS91z7JdDJJr4YLbjCsD1+7S0nHhJ5PIdcIbieqKCgcNJVtqEP5ZwXQ9rybAi1wUTS9\n 8py7F1lxC6Th/NF5zShecBOtJW9w9kYU0dlvg=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=H3NgidgZiTNIp4uF0DKOoDIN3xC1hgUaGOceJB03YXQ=;\n b=6d21yP+YGwhiIT6M6h1r8nXDU0QP6oDS3ADoCP/V0wkNDtR9scCWppDRdG9k7xcHm9\n YJ+5BXXeXofN6Ew6w3CyhNlOfkWthCDSwhts7xuxziMK0oY6/F9prm2sTUMyWmMz0+yF\n v2+0PGAfF9oxxaNCdn7E9uoem13UUgor1ot8++ZTpeTMkRIuZCjrcz+wlkRTV6Niu6G/\n Z2bxYkExqQ3SHHpDPcx7hwiBM3OY9Dez+vUVQbur/d47fiNKL3QPXrW+cLO7wGcH/hBr\n PCwRs9XwzSEX+ZZCRz4Go0KUDdHH5dXdE47W1n54z2s3xHCIIwwZvT9XYDOeuX4MoDgS\n tNXg==", "X-Gm-Message-State": "AOAM532Eoa+Qabx4/qZRIXC8lpQRg7evhux6B3u1ENEwP7FDuqG/VNxA\n EUqI9BV5/euvZ7JrFodGigxFIQ==", "X-Google-Smtp-Source": "\n ABdhPJz0TcEOAS1xrJdeA4m2cou7zmS+6B10tWcec2Fk6iAuJUpAxixvdoOd1XX2IY45WcbjugC4MA==", "X-Received": "by 2002:a17:902:da8f:b0:13e:fcb9:2371 with SMTP id\n j15-20020a170902da8f00b0013efcb92371mr5303177plx.72.1633632310329;\n Thu, 07 Oct 2021 11:45:10 -0700 (PDT)", "From": "Srikanth Kaka <srikanth.k@oneconvergence.com>", "To": "Matan Azrad <matan@nvidia.com>,\n Viacheslav Ovsiienko <viacheslavo@nvidia.com>", "Cc": "dev@dpdk.org, Vag Singh <vag.singh@oneconvergence.com>,\n Anand Thulasiram <avelu@juniper.net>,\n Srikanth Kaka <srikanth.k@oneconvergence.com>", "Date": "Fri, 8 Oct 2021 00:13:30 +0530", "Message-Id": "<20211007184350.73858-22-srikanth.k@oneconvergence.com>", "X-Mailer": "git-send-email 2.30.2", "In-Reply-To": "<20211007184350.73858-1-srikanth.k@oneconvergence.com>", "References": "<20211007184350.73858-1-srikanth.k@oneconvergence.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Mailman-Approved-At": "Fri, 08 Oct 2021 12:55:54 +0200", "Subject": "[dpdk-dev] [PATCH v2 21/41] net/mlx5: add set MTU routine", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "using IOCTL call MTU is set\n\nSigned-off-by: Srikanth Kaka <srikanth.k@oneconvergence.com>\nSigned-off-by: Vag Singh <vag.singh@oneconvergence.com>\nSigned-off-by: Anand Thulasiram <avelu@juniper.net>\n---\n drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 19 +++++++++++++++++++\n 1 file changed, 19 insertions(+)", "diff": "diff --git a/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c b/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c\nindex b470c4ddec..10069302bb 100644\n--- a/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c\n+++ b/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c\n@@ -119,6 +119,25 @@ mlx5_get_mtu(struct rte_eth_dev *dev, uint16_t *mtu)\n \treturn 0;\n }\n \n+/**\n+ * Set device MTU.\n+ *\n+ * @param dev\n+ * Pointer to Ethernet device.\n+ * @param mtu\n+ * MTU value to set.\n+ *\n+ * @return\n+ * 0 on success, a negative errno value otherwise and rte_errno is set.\n+ */\n+int\n+mlx5_set_mtu(struct rte_eth_dev *dev, uint16_t mtu)\n+{\n+\tstruct ifreq request = { .ifr_mtu = mtu, };\n+\n+\treturn mlx5_ifreq(dev, SIOCSIFMTU, &request);\n+}\n+\n /**\n * Get MAC address by querying netdevice.\n *\n", "prefixes": [ "v2", "21/41" ] }{ "id": 100789, "url": "