From: Alex Chapman <alex.chapman@arm.com>
To: Nicholas Pratte <npratte@iol.unh.edu>,
probb@iol.unh.edu, dmarx@iol.unh.edu, jspewock@iol.unh.edu,
luca.vizzarro@arm.com, yoan.picchi@foss.arm.com,
Honnappa.Nagarahalli@arm.com, paul.szczepanek@arm.com,
juraj.linkes@pantheon.tech
Cc: dev@dpdk.org
Subject: Re: [RFC PATCH v3 2/2] dts: Initial Implementation For Jumbo Frames Test Suite
Date: Wed, 28 Aug 2024 10:52:42 +0100 [thread overview]
Message-ID: <7c2a0677-9815-4d6c-aeb8-6f35966db7d8@arm.com> (raw)
In-Reply-To: <20240726141307.14410-3-npratte@iol.unh.edu>
Hi,
Ive been looking into the MTU terminology and would just like to clarify
some naming conventions and doc strings.
On 7/26/24 15:13, Nicholas Pratte wrote:
<snip>
> +IP_HEADER_LEN = 20
> +ETHER_STANDARD_FRAME = 1500
> +ETHER_JUMBO_FRAME_MTU = 9000
For these constants, I am confused why one is "FRAME" and the other is
"MTU". The value of 'ETHER_STANDARD_FRAME' is 1500 (the standard MTU
size), it would make sense to rename it to 'ETHER_STANDARD_MTU', to keep
naming consistent.
If the value was 1518 instead of 1500, then `ETHER_STANDARD_FRAME` would
be appropriate.
<snip>
> + def test_jumboframes_normal_nojumbo(self) -> None:
> + """Assess the boundaries of packets sent less than or equal to the standard MTU length.
> +
> + PMDs are set to the standard MTU length of 1518 to assess behavior of sent packets less than
> + or equal to this size. Sends two packets: one that is less than 1518 bytes, and another that
> + is equal to 1518 bytes. The test case expects to receive both packets.
> +
> + Test:
> + Start testpmd and send packets of sizes 1517 and 1518.
> + """
> + with TestPmdShell(
> + self.sut_node, tx_offloads=0x8000, mbuf_size=[9200], mbcache=200
> + ) as testpmd:
> + testpmd.configure_port_mtu_all(ETHER_STANDARD_FRAME)
> + testpmd.start()
Renaming 'ETHER_STANDARD_FRAME' to 'ETHER_STANDARD_MTU' would reduce
confusion here too.
e.g.
`testpmd.configure_port_mtu_all(ETHER_STANDARD_MTU)`
Additionally, you state you are sending packets of sizes 1517 and 1518.
but you then call:
`self.send_packet_and_verify(ETHER_STANDARD_FRAME - 5)`
`self.send_packet_and_verify(ETHER_STANDARD_FRAME)`
Calculating to:
`self.send_packet_and_verify(1495)`
`self.send_packet_and_verify(1500)`
Which is confusing.
I believe this is because you are accounting for the 4 bytes of VLAN's
in your calculations, but you might want to explain this.
Overall very solid and clean test suite, just wanted to get
clarification on a few areas 🙂.
Alex
next prev parent reply other threads:[~2024-08-28 9:52 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-24 18:36 [RFC PATCH 0/1] Initial Implementation For Jumbo Frames Nicholas Pratte
2024-05-24 18:36 ` [RFC PATCH] Initial Implementation For Jumbo Frames Test Suite Nicholas Pratte
2024-07-26 14:09 ` [RFC PATCH v3 0/2] Initial Implementation For Jumbo Frames Nicholas Pratte
2024-06-21 21:13 ` [RFC PATCH v2 0/1] " Nicholas Pratte
2024-06-21 21:19 ` [RFC PATCH v2] Initial Implementation For Jumbo Frames Test Suite Nicholas Pratte
2024-06-21 22:18 ` Stephen Hemminger
2024-06-21 23:54 ` Honnappa Nagarahalli
2024-06-25 19:57 ` Nicholas Pratte
2024-06-25 21:57 ` Thomas Monjalon
2024-07-01 16:45 ` Nicholas Pratte
2024-06-25 23:49 ` Stephen Hemminger
2024-07-26 14:13 ` [RFC PATCH v3 0/2] Initial Implementation For Jumbo Frames Nicholas Pratte
2024-07-26 14:13 ` [RFC PATCH v3 1/2] dts: add port config mtu options to testpmd shell Nicholas Pratte
2024-08-02 19:54 ` Jeremy Spewock
2024-08-22 9:14 ` Juraj Linkeš
2024-07-26 14:13 ` [RFC PATCH v3 2/2] dts: Initial Implementation For Jumbo Frames Test Suite Nicholas Pratte
2024-08-02 19:54 ` Jeremy Spewock
2024-08-28 9:52 ` Alex Chapman [this message]
2024-08-29 19:04 ` Nicholas Pratte
2024-09-19 15:54 ` [RFC PATCH v3 0/2] Initial Implementation For Jumbo Frames Alex Chapman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7c2a0677-9815-4d6c-aeb8-6f35966db7d8@arm.com \
--to=alex.chapman@arm.com \
--cc=Honnappa.Nagarahalli@arm.com \
--cc=dev@dpdk.org \
--cc=dmarx@iol.unh.edu \
--cc=jspewock@iol.unh.edu \
--cc=juraj.linkes@pantheon.tech \
--cc=luca.vizzarro@arm.com \
--cc=npratte@iol.unh.edu \
--cc=paul.szczepanek@arm.com \
--cc=probb@iol.unh.edu \
--cc=yoan.picchi@foss.arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).