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
Unknown Object (File)
Fri, Apr 19, 1:01 PM
Unknown Object (File)
Mar 7 2024, 11:45 PM
Unknown Object (File)
Feb 16 2024, 7:22 PM
Unknown Object (File)
Dec 20 2023, 6:57 AM
Unknown Object (File)
Dec 18 2023, 5:28 PM
Unknown Object (File)
Dec 12 2023, 2:30 AM
Unknown Object (File)
Oct 11 2023, 12:42 PM
Unknown Object (File)
Sep 6 2023, 2:34 AM
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