Re: [PATCH netdev-2.6] jme: JMicron Gigabit Ethernet Driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeff Garzik
Date: Friday, August 22, 2008 - 11:41 pm

Guo-Fu Tseng wrote:

Very nice and clean and feature-complete!  Comments:

* the definition of jwrite32() and jread32():  writel() and readl() are 
defined in terms of the little-endian PCI bus, and therefore 
automatically handle byteswapping (or not) as defined by the platform API.

You should be able to just remove those le32_to_cpu() and the reverse, 
to obtain proper behavior.

* The atomic values rx_cleaning and tx_cleaning look problematic and 
potentially racy, though I admit not having completely evaluated its usage.

* we prefer not to add custom ioctls, but rather add functionality to 
ethtool.  in particular, JMESPIIOCTL does not appear to have any 
security checks, and is a potential security hole that permits an 
unpriveleged user direct access to hardware

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH netdev-2.6] jme: JMicron Gigabit Ethernet Driver, Guo-Fu Tseng, (Fri Aug 22, 11:05 pm)
Re: [PATCH netdev-2.6] jme: JMicron Gigabit Ethernet Driver, Jeff Garzik, (Fri Aug 22, 11:41 pm)