Page MenuHomeFreeBSD

Allow vlan interfaces to rx through netmap(4)
ClosedPublic

Authored by mjoras on Aug 31 2017, 9:35 PM.
Tags
None
Referenced Files
F150422812: D12191.diff
Wed, Apr 1, 2:51 AM
Unknown Object (File)
Fri, Mar 20, 5:29 AM
Unknown Object (File)
Thu, Mar 12, 3:54 PM
Unknown Object (File)
Sun, Mar 8, 3:16 PM
Unknown Object (File)
Wed, Mar 4, 11:09 PM
Unknown Object (File)
Tue, Mar 3, 9:52 PM
Unknown Object (File)
Feb 27 2026, 5:26 AM
Unknown Object (File)
Feb 19 2026, 3:25 AM
Subscribers

Details

Summary

Normally after receiving a packet, a vlan(4) interface sends the packet
back through its parent interface's rx routine so that it can be
processed as an untagged frame. It does this by using the parent's
ifp->if_input. This is incompatible with netmap(4), which replaces the
vlan(4) interface's if_input with a netmap(4) hook. Fix this by using
the vlan(4) interface's ifp instead of the parent's directly.

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Sep 12 2017, 11:57 PM
This revision was automatically updated to reflect the committed changes.