Page MenuHomeFreeBSD

iflib: Take iri_pad into account when processing small frames
ClosedPublic

Authored by kd on Apr 27 2021, 10:49 AM.
Tags
None
Referenced Files
F169604029: D30009.id88252.diff
Wed, Sep 2, 1:15 AM
F169593165: D30009.id.diff
Wed, Sep 2, 12:37 AM
F169583682: D30009.id88252.diff
Tue, Sep 1, 11:47 PM
Unknown Object (File)
Mon, Aug 31, 10:47 PM
Unknown Object (File)
Mon, Aug 31, 2:41 AM
Unknown Object (File)
Mon, Aug 31, 12:30 AM
Unknown Object (File)
Sun, Aug 30, 5:15 PM
Unknown Object (File)
Sat, Aug 29, 10:10 PM
Subscribers

Details

Summary

Drivers can specify padding of received frames with iri_pad field.
This can be used to enforce ip alignment by hardware.
Iflib ignores that padding when processing small frames, which renders this feature inoperable.
I found it while writing a driver for a NIC that can ip align received packets.
Note that this doesn't change behavior of existing drivers as they all set iri_pad to 0.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable