Page MenuHomeFreeBSD

Add netmap support for lagg devices
Needs ReviewPublic

Authored by giuseppe.lettieri_unipi.it on Wed, Sep 9, 8:53 AM.

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
Unit Tests Skipped

Event Timeline

giuseppe.lettieri_unipi.it requested review of this revision.Wed, Sep 9, 8:53 AM