Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/135215/?format=api
http://patches.dpdk.org/api/patches/135215/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231214221012.9598-7-jspewock@iol.unh.edu/", "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": "<20231214221012.9598-7-jspewock@iol.unh.edu>", "list_archive_url": "https://inbox.dpdk.org/dev/20231214221012.9598-7-jspewock@iol.unh.edu", "date": "2023-12-14T22:10:11", "name": "[v4,5/7] dts: allow configuring MTU of ports", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "cb0a97151d37b0e10cbedd00734ff633404d89a5", "submitter": { "id": 2772, "url": "http://patches.dpdk.org/api/people/2772/?format=api", "name": "Jeremy Spewock", "email": "jspewock@iol.unh.edu" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20231214221012.9598-7-jspewock@iol.unh.edu/mbox/", "series": [ { "id": 30567, "url": "http://patches.dpdk.org/api/series/30567/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30567", "date": "2023-12-14T22:10:11", "name": null, "version": 4, "mbox": "http://patches.dpdk.org/series/30567/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/135215/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/135215/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 F08DC436F4;\n\tThu, 14 Dec 2023 23:11:50 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E87364336C;\n\tThu, 14 Dec 2023 23:11:26 +0100 (CET)", "from mail-oi1-f228.google.com (mail-oi1-f228.google.com\n [209.85.167.228])\n by mails.dpdk.org (Postfix) with ESMTP id D554C4337A\n for <dev@dpdk.org>; Thu, 14 Dec 2023 23:11:24 +0100 (CET)", "by mail-oi1-f228.google.com with SMTP id\n 5614622812f47-3b9fcb3223dso33171b6e.3\n for <dev@dpdk.org>; Thu, 14 Dec 2023 14:11:24 -0800 (PST)", "from postal.iol.unh.edu (postal.iol.unh.edu. [132.177.123.84])\n by smtp-relay.gmail.com with ESMTPS id\n p11-20020a0cf68b000000b00679fce4250dsm986071qvn.26.2023.12.14.14.11.23\n (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n Thu, 14 Dec 2023 14:11:24 -0800 (PST)", "from iol.unh.edu (unknown\n [IPv6:2606:4100:3880:1271:90f9:1b64:f6e6:867f])\n by postal.iol.unh.edu (Postfix) with ESMTP id 84D8D605C311;\n Thu, 14 Dec 2023 17:11:23 -0500 (EST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=iol.unh.edu; s=unh-iol; t=1702591884; x=1703196684; darn=dpdk.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=LWy5yLdKpzUDzJB70ubur9uEm4/JCOHh/XV+76RBED4=;\n b=N9waK7EhXtUICb2yZCJ9mtUVYqkhjZ4VVPgmPKUHNow1krjbiXPhZeN2ojx7P4YClk\n 1NHUmTgdeJN82UUNCYOuzM+8mQ5Uak5jygFnczJqC40jHsEpGhhdwXuXIjqHZgr2jFhI\n L2YnNE8EQdNP3nNju6WWXrODbSxz7hH5IPqAY=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1702591884; x=1703196684;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=LWy5yLdKpzUDzJB70ubur9uEm4/JCOHh/XV+76RBED4=;\n b=URpisCAz09rcF4thoMovmEf1QmeRjAwDlW6Yokx+9G/a8lL0Xu3tyNIOgNWfphEnF4\n x1cuHWHwGqqPLZbK53AGt65feZ6koYZFRd18ulHU+o8sTTrYyOXKNmKeYY4Aaar/PXV9\n G7W6fkbYtW8b9SBsAzY8wPp5FM+PXTQJDKNwERHssYGYmSoSu/lheo66LlZgHiD9KVNW\n vT+UkN3M+LXhvLs9Fe9x09vB4hVVqSm5OZfUSNuSE+9qviAlHlGjMBV5yXtdvbSv5bq6\n oL/59EFTkGWSE+S14jZDXfv42XnYy5nSAxS0BF+DfVMJ3ZLODyZ/87fFNS6d/279AQ9h\n bevw==", "X-Gm-Message-State": "AOJu0Yx1X7Z/fmrBRqR2Vt3nx2aVcZzNbtYrG2dL+xs+CYWWvDBz4o72\n DsNEs4Yv+ZW8unpFSV7B7Pr9a2UcZtSSO5dypB1iIndlYQzZVQ==", "X-Google-Smtp-Source": "\n AGHT+IGw8/eNSAq70E0fgCN4DT9R9j8YIh1sXeYrzb2+vSgxnc2Fvo28LCyOnt2KNgcINW7ff7HMZ5vh/SGq", "X-Received": "by 2002:a05:6808:11c8:b0:3ba:3c4:2630 with SMTP id\n p8-20020a05680811c800b003ba03c42630mr10015992oiv.113.1702591884211;\n Thu, 14 Dec 2023 14:11:24 -0800 (PST)", "X-Relaying-Domain": "iol.unh.edu", "From": "jspewock@iol.unh.edu", "To": "Honnappa.Nagarahalli@arm.com, juraj.linkes@pantheon.tech,\n thomas@monjalon.net, wathsala.vithanage@arm.com, probb@iol.unh.edu,\n paul.szczepanek@arm.com, yoan.picchi@foss.arm.com, ferruh.yigit@amd.com,\n andrew.rybchenko@oktetlabs.ru", "Cc": "dev@dpdk.org,\n\tJeremy Spewock <jspewock@iol.unh.edu>", "Subject": "[PATCH v4 5/7] dts: allow configuring MTU of ports", "Date": "Thu, 14 Dec 2023 17:10:11 -0500", "Message-ID": "<20231214221012.9598-7-jspewock@iol.unh.edu>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20231113202833.12900-1-jspewock@iol.unh.edu>", "References": "<20231113202833.12900-1-jspewock@iol.unh.edu>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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" }, "content": "From: Jeremy Spewock <jspewock@iol.unh.edu>\n\nAdds methods in both os_session and linux session to allow for setting\nMTU of port interfaces in an OS agnostic way.\n\nSigned-off-by: Jeremy Spewock <jspewock@iol.unh.edu>\n---\n dts/framework/remote_session/linux_session.py | 8 ++++++++\n dts/framework/remote_session/os_session.py | 9 +++++++++\n 2 files changed, 17 insertions(+)", "diff": "diff --git a/dts/framework/remote_session/linux_session.py b/dts/framework/remote_session/linux_session.py\nindex fd877fbfae..aaa4d57a36 100644\n--- a/dts/framework/remote_session/linux_session.py\n+++ b/dts/framework/remote_session/linux_session.py\n@@ -177,6 +177,14 @@ def configure_port_ip_address(\n verify=True,\n )\n \n+ def configure_port_mtu(self, mtu: int, port: Port) -> None:\n+ \"\"\"Overrides :meth:`~.os_session.OSSession.configure_port_mtu`.\"\"\"\n+ self.send_command(\n+ f\"ip link set dev {port.logical_name} mtu {mtu}\",\n+ privileged=True,\n+ verify=True,\n+ )\n+\n def configure_ipv4_forwarding(self, enable: bool) -> None:\n state = 1 if enable else 0\n self.send_command(f\"sysctl -w net.ipv4.ip_forward={state}\", privileged=True)\ndiff --git a/dts/framework/remote_session/os_session.py b/dts/framework/remote_session/os_session.py\nindex 8a709eac1c..cd073f5774 100644\n--- a/dts/framework/remote_session/os_session.py\n+++ b/dts/framework/remote_session/os_session.py\n@@ -277,6 +277,15 @@ def configure_port_ip_address(\n Configure (add or delete) an IP address of the input port.\n \"\"\"\n \n+ @abstractmethod\n+ def configure_port_mtu(self, mtu: int, port: Port) -> None:\n+ \"\"\"Configure `mtu` on `port`.\n+\n+ Args:\n+ mtu: Desired MTU value.\n+ port: Port to set `mtu` on.\n+ \"\"\"\n+\n @abstractmethod\n def configure_ipv4_forwarding(self, enable: bool) -> None:\n \"\"\"\n", "prefixes": [ "v4", "5/7" ] }{ "id": 135215, "url": "