For untagged traffic, we always hit the check for ether_type.
No functional change intended.
MFC after: 1 week
Differential D42389
ethernet: Reduce a runtime ntohs() in fast path zlei on Oct 28 2023, 7:13 PM. Authored by Tags None Referenced Files
Details
For untagged traffic, we always hit the check for ether_type. No functional change intended. MFC after: 1 week
Diff Detail
Event Timeline
Comment Actions I’d rather avoid doing that. ntohs is fast and branchless, so I’d vote for optimizing for readability here (unless there is a measurable performance gain) Comment Actions True indeed.
No measurable performance gain. |