Page MenuHomeFreeBSD

Add netmap support for lagg devices
Needs ReviewPublic

Authored by giuseppe.lettieri_unipi.it on Sep 9 2020, 8:53 AM.
Tags
None
Referenced Files
F145239482: D26366.id.diff
Tue, Feb 17, 11:32 AM
Unknown Object (File)
Sun, Jan 25, 11:37 AM
Unknown Object (File)
Sat, Jan 24, 10:58 PM
Unknown Object (File)
Thu, Jan 22, 10:40 PM
Unknown Object (File)
Jan 14 2026, 11:15 AM
Unknown Object (File)
Jan 13 2026, 3:35 AM
Unknown Object (File)
Jan 13 2026, 3:35 AM
Unknown Object (File)
Nov 25 2025, 8:12 PM
This revision needs review, but all reviewers have resigned.

Details

Reviewers
vmaffione
Summary

Currently, the netmap generic driver reports a successful attachment to lagg devices, but then it is not able to intercept any received packet, since the netmap driver relies on the if_input method which lagg devices do not use.

This patch adds a call to if_input in the lagg input path, when the device has been put in netmap mode, thus enabling full support of netmap mode for these devices.

Test Plan

Tested with WITNESS and INVARIANTS on, using 'pkt-gen -i lagg0 -frx' on a lagg device combining an em and a vtnet device.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped