Page MenuHomeFreeBSD

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

Authored by v.maffione_gmail.com on Wed, Dec 5, 3:45 PM.

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

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Sat, Dec 8, 12:52 PM
Closed by commit rS341726: tools: netmap: pkt-gen: check packet length against interface MTU (authored by vmaffione, committed by ). · Explain Why
This revision was automatically updated to reflect the committed changes.