[ofa-general] [2.6 patch] infiniband/hw/nes/nes_verbs.c: fix off-by-one
Roland Dreier
rdreier at cisco.com
Thu Feb 21 12:28:55 PST 2008
> This driver should really have gotten some review before being included
> in the kernel.
> Even a simple checkpatch run finds more than > 250 stylistic errors
> (not code bugs but cases where the driver violates the standard code
> formatting rules of kernel code).
Linus has strongly stated that we should merge hardware drivers early,
and I agree: although the nes driver clearly needs more work, there's
no advantage to users with the hardware in forcing them to wait for
2.6.26 to merge the driver, since they'll just have to patch the
grungy code in themselves anyway. And by merging the driver early, we
get fixed up for any tree-wide changes and allow janitors to help with
the cleanup.
(By the way, the code is not that pretty but it a lot closer to
upstream style than most driver submissions)
> And these are just comments from someone with zero knowledge about
> InfiniBand, but I'd expect InfiniBand-specifig bugs might be found
> before they hit users if an InfiniBand maintainer would review the
> complete driver.
Just for the record, although this driver is under drivers/infiniband,
it is actually for a device that does iWARP/10 Gb ethernet. At some
point we may want to rename drivers/infiniband to drivers/rdma, but so
far the churn hasn't seemed worth it for what is basically a cosmetic
issue.
- R.
More information about the general
mailing list