~kevans/tn40xx-build.diff
Added tn40xx
Changes after first round of tests.
Support FreeBSD 12.x and other fixes
Version 1.1
Bug fix.
Ver 1.2: Added README file. Added license header.
Differential D19433
[new driver] tn40xx(4): Tehuti networks tn40xx device driver. emaste on Mar 3 2019, 9:19 AM. Authored by Tags None Referenced Files
Details
~kevans/tn40xx-build.diff Added tn40xx Changes after first round of tests. Support FreeBSD 12.x and other fixes Version 1.1 Bug fix. Ver 1.2: Added README file. Added license header.
Diff Detail
Event TimelineComment Actions A least AQR105_phy.c is still missing license headers. Please add headers to all source and header files. The file list should almost certainly be in sys/conf/files not sys/conf/files.amd64. Comment Actions I'm copying in @gallatin's comments from another review of this same driver -- please update this specific review with a new version using the "Update Diff" link on the right side of the web interface, or with arc diff --update D19433 (IIRC) if you're using arc. Entirely new reviews breaks the continuity and makes it harder to examine changes version-to-version. @gallatin wrote: There is code which is clearly FreeBSD specific that needs to be converted to comply with style(9). Why did you feel the need to write your own mbuf copy and defrag routines? Did you consider using iflib? That way you would not have to deal with parsing packets, or mbufs or even busdma. There is a fairly clean interface in iflib, such that iflib parses mbufs and then passes DMA s/g lists to a drivers transmit routine. This is used by the Intel and Broadcom drivers (among others).
Comment Actions Agreed- that one was my bad, but I wrote that long enough ago now that I don't recall why. I would also suspect the pci dependency on every single file was wrong, and that was again my bad. Comment Actions Why are there multiple reviews? The other one still appears to be open (https://reviews.freebsd.org/D18856) I'd also like to hear more from the authors on why they did not use iflib.
Comment Actions I think I ended up as reviewer due to license issues when I was on core. It seems stalled, but I'm not quite ready to commandeer and abandon it. Comment Actions It looks like Tehuti Networks is out of business Comment Actions Abandon as Tehuti Networks is unfortunately out of business and hardware won't be available. |