HomeFreeBSD

iflib: fix iflib_simple_transmit() when interface is down

Description

iflib: fix iflib_simple_transmit() when interface is down

Use the same check as iflib_if_transmit() to detect when the
interface is down and return the proper error code, and also
free the mbuf.

This fixes an mbuf leak when a member of a lagg is brought
down (and probably many other scenarios).

Sponsored by: Netflix

Details

Provenance
gallatinAuthored on Thu, Nov 20, 12:48 AM
Parents
rGa731cb93a662: dpaa2: Setup interface caps on attach
Branches
Unknown
Tags
Unknown