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
Unknown Object (File)
Thu, Mar 7, 1:56 AM
Unknown Object (File)
Thu, Mar 7, 12:53 AM
Unknown Object (File)
Thu, Mar 7, 12:00 AM
Unknown Object (File)
Feb 19 2024, 10:08 PM
Unknown Object (File)
Feb 10 2024, 9:37 PM
Unknown Object (File)
Jan 25 2024, 2:08 AM
Unknown Object (File)
Jan 15 2024, 1:38 PM
Unknown Object (File)
Dec 22 2023, 10:42 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