~kevans/tn40xx-build.diff
Added tn40xx
Changes after first round of tests.
Differential D18856
new driver: Tehuti networks tn40xx device driver. ami_tehutinetworks.net on Jan 16 2019, 1:31 PM. Authored by Tags None Referenced Files
Details
Diff Detail
Event TimelineComment Actions Hi, I'll drop in to provide some initial review within the next couple of days, now that I've done a bit of dabbling in the area. Apologies for the delay. Also, there's some kind of "update" link on the right hand side of this revision that you can use to update the diff when the time comes. I'll commandeer/abandon the other copy of this review to reduce confusion. =) Comment Actions Adding a couple more reviewers, because I'm afraid I can't provide actionable feedback. I suspect this should be rebased on top of iflib, so tagging the iflib folk to see if they can provide some guidance. Comment Actions I was wondering if we can have a man page along with this as my first question was "what kind of driver is this?" Sadly the description of this review doesn't say much. It would also be good to know which parts of the driver are "common core" (possibly shared with other OSes) and which are FreeBSD specific. There is not much point in reviewing style etc on shared code. Most files seem to be missing a license and one files has a GPL license hint, which means it'll need core approval [ https://www.freebsd.org/internal/software-license.html ]. If this is "vendor" code it would be nice if it could be re-licensed. Comment Actions 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).
|