HomeFreeBSD

wg: Implement if_transmit unconditionally

Description

wg: Implement if_transmit unconditionally

Commit bf454ca88bdf made wg_transmit() defined only when "device netmap"
is configured, as if_wg's if_transmit implementation should never be
called otherwise, but this breaks a requirement that interfaces
implement both or neither of if_transmit and if_qflush.

Restore the old behaviour of unconditionally defining wg_transmit(). It
contains an assertion that the interface is in netmap mode.

Reported by: peterj
MFC after: 2 weeks
Fixes: bf454ca88bdf ("wg: Add netmap support")

(cherry picked from commit 5515e8874a8d85a8d961fca64c494dfc1bea4bd0)

Details

Provenance
markjAuthored on Jun 16 2024, 5:33 PM
Parents
rGc39d01d73cec: dtrace: Remove LOCK_LEVEL
Branches
Unknown
Tags
Unknown