Home | History | Annotate | Download | only in man4
History log of /src/share/man/man4/usbnet.4
RevisionDateAuthorComments
 1.7  04-Feb-2024  mrg update my email address.
 1.6  11-Dec-2021  mrg remove clause 3 from all my licenses that aren't conflicting with
another copyright claim line. again. (i did this in 2008 and then
did not update all of my personal templates.)
 1.5  16-Jun-2021  riastradh if_attach and if_initialize cannot fail, don't test return value

These were originally made failable back in 2017 when if_initialize
allocated a softint in every interface for link state changes, so
that it could fail gracefully instead of panicking:

https://mail-index.NetBSD.org/source-changes/2017/10/23/msg089053.html

However, this spawned many seldom- or never-tested error branches,
which are risky to have around. And that softint in every interface
has since been replaced by a single global workqueue, because link
state changes require thread context but not low latency or high
throughput:

https://mail-index.NetBSD.org/source-changes/2020/02/06/msg113759.html

So there is no longer any reason for if_initialize to fail. (The
subroutine if_stats_init can't fail because percpu_alloc can't fail
either.)

There is a snag: the softint_establish in if_percpuq_create could
fail, potentially leading to bad consequences later on trying to use
the softint. This change doesn't introduce any new bugs because of
the snag -- if_percpuq_attach was already broken. However, the snag
can be better addressed without spawning error branches, either by
using a single softint or making softints less scarce.

(Separate commit will change the signatures of if_attach and
if_initialize to return void, scheduled to ride whatever is the next
convenient kernel bump.)

Patch and testing on amd64 and evbmips64-eb by maya@; commit message
soliloquy, and compile-testing on evbppc/i386/earmv7hf, by me.
 1.4  20-Sep-2019  mrg branches: 1.4.4;
add mos(4) driver for Moschip MCS7730/MCS7830/MCS7832 usb ethernet.
ported from openbsd. usbnet version loses about 40% of code.
 1.3  30-Aug-2019  wiz Various minor fixes.
 1.2  30-Aug-2019  wiz Fix date.
 1.1  30-Aug-2019  mrg document usbnet diagnostics in usbnet(4). remove all the no longer
present messages in specific drivers for the usbnet drivers.
 1.4.4.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.4.4.1  20-Sep-2019  martin file usbnet.4 was added on branch phil-wifi on 2020-04-13 08:03:25 +0000

RSS XML Feed