HomeFreeBSD

genet: fix problems with interface down/up

Description

genet: fix problems with interface down/up

The genet interface did not resume operation correctly after doing
ifconfig down then up. The down/reset procedure did not clear the
RUNNING flag, and did not reset enough of the hardware state. This
patch is modeled on OpenBSD code, with a call to gen_reset added
to reset the controller completely. Regularize the parameter to
gen_dma_disable() while here.

PR: 263091
Submitted by: jiahali@blackberry.com

(cherry picked from commit 8f45652b6bccc258eb58f8721dea10184f1aaa17)

Details

Provenance
karelsAuthored on Apr 11 2022, 7:44 PM
Parents
rG11eac05a40a5: vm: Move the "vm_wait in early boot" assertion to the proper place
Branches
Unknown
Tags
Unknown