Page MenuHomeFreeBSD

tools: netmap: pkt-gen: check packet length against interface MTU
ClosedPublic

Authored by vmaffione on Dec 5 2018, 3:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 30 2024, 7:13 AM
Unknown Object (File)
Jan 11 2024, 9:52 PM
Unknown Object (File)
Jan 1 2024, 3:22 PM
Unknown Object (File)
Dec 20 2023, 3:33 AM
Unknown Object (File)
Oct 22 2023, 9:51 AM
Unknown Object (File)
Oct 14 2023, 7:51 AM
Unknown Object (File)
Sep 21 2023, 1:32 AM
Unknown Object (File)
Aug 23 2023, 7:49 PM
Subscribers

Details

Summary

Validate the value of the -l argument (packet length) against the MTU of the netmap port.
In case the netmap port does not refer to a physical interface (e.g. VALE port or pipe), then
the netmap buffer size is used as MTU.
This change also sets a better default value for the -M option, so that pkt-gen uses
the largest possible fragments in case of multi-slot packets.

Test Plan

Performed several pkt-gen tests with and without jumbo frames on em interfaces.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Dec 8 2018, 12:52 PM
This revision was automatically updated to reflect the committed changes.