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
F132530156: D18436.id.diff
Fri, Oct 17, 5:32 PM
F132530154: D18436.id51608.diff
Fri, Oct 17, 5:32 PM
F132530137: D18436.id51752.diff
Fri, Oct 17, 5:31 PM
F132490711: D18436.diff
Fri, Oct 17, 8:52 AM
Unknown Object (File)
Thu, Oct 9, 1:57 AM
Unknown Object (File)
Tue, Oct 7, 10:05 PM
Unknown Object (File)
Wed, Oct 1, 5:20 AM
Unknown Object (File)
Thu, Sep 25, 2:14 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.