| To: | "David S. Miller" <davem@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] ethtool_ops rev 4 |
| From: | Jeff Garzik <jgarzik@xxxxxxxxx> |
| Date: | Fri, 01 Aug 2003 19:42:44 -0400 |
| Cc: | willy@xxxxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <20030801161937.1d9a7126.davem@xxxxxxxxxx> |
| Organization: | none |
| References: | <20030801150232.GV22222@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20030801154021.GA7696@xxxxxxx> <20030801154656.GW22222@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20030801162536.GA18574@xxxxxxx> <20030801132037.3f3542ae.davem@xxxxxxxxxx> <3F2AE91D.5090705@xxxxxxxxx> <20030801153255.204baf66.davem@xxxxxxxxxx> <3F2AF141.2010308@xxxxxxxxx> <20030801160136.3342c5cc.davem@xxxxxxxxxx> <3F2AF525.3000605@xxxxxxxxx> <20030801161937.1d9a7126.davem@xxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021213 Debian/1.2.1-2.bunk |
David S. Miller wrote: On Fri, 01 Aug 2003 19:17:57 -0400 Jeff Garzik <jgarzik@xxxxxxxxx> wrote:Solution #2 chooses to create a tiny bit more merge-to-mainline pain, but also keeps the mainline kernel drivers more clean.You don't need DO_ETHTOOL_OPS and thus the merge-to-mainline pain at all if you do something like: 1) SET_ETHDEV_OPS() also overrides the ->do_ioctl() setting to a kcompat_netdev_ioctl() one, but remembers the original pointer somewhere. 2) kcompat_netdev_ioctl() does the things DO_ETHTOOL_OPS would have done, failing that it calls the saved ->do_ioctl() pointer. Certainly. That's a bit nicer than the back-compat gunk I was plotting, even. Still need the boring and obvious definition of SET_ETHTOOL_OPS in mainline, though.
Jeff
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: 2.4.21: bug report for tg3: tx lockup when changing MTU, Ben Greear |
|---|---|
| Next by Date: | Re: [PATCH] 2.4.x USAGI mipv6_ha_ipsec, Noriaki Takamiya |
| Previous by Thread: | Re: [PATCH] ethtool_ops rev 4, David S. Miller |
| Next by Thread: | Re: [PATCH] ethtool_ops rev 4, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |