Skip to contentSkip to conversation

sfc: Add driverlink API to support virtual NIC drivers

DISCUSSION David Miller 2 participants 2 messages Nov 16, 2008 – Nov 17, 2008

Subsystems (2)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

I'm not applying this patch, it is just a gateway for proprietary extensions to the driver.

The fact that it allows any module to hook into the driver and decide how to handle every TX or RX frame basically makes this change a non-starter.

Many many years ago, various vendor drivers tried to do something similar, so that their proprietary bonding modules could work, and instead we improved the Linux bonding driver to have feature parity with whatever those guys were offering.

#1 lore raw
Quoted 2 lines · David Miller

I'm not applying this patch, it is just a gateway for proprietary extensions to the driver.

We have no interest in creating proprietary extensions. All existing driverlink clients are either licenced under GPLv2 or are unreleased debugging tools. I hadn't thought of it before, but we could change the EXPORT_SYMBOLs to EXPORT_SYMBOL_GPL.

Quoted 3 lines

The fact that it allows any module to hook into the driver and decide how to handle every TX or RX frame basically makes this change a non-starter.

This is unpleasant but seems to be necessary. The reason for this hook was explained by my colleague Robert Stonehouse in a covering mail 
<http://article.gmane.org/gmane.linux.network/96546> for an earlier version of this patch:

"They are needed partly because the filtering of received packets onto V-NICs is imperfect, and in Xen to spot certain control plane updates efficiently."

Existing driverlink clients only inspect packets rather than modifying them, and it might be possible for them to do without the "veto" option. Maybe we could even use netfilter, though I suspect that would be fragile.

Quoted 4 lines

Many many years ago, various vendor drivers tried to do something similar, so that their proprietary bonding modules could work, and instead we improved the Linux bonding driver to have feature parity with whatever those guys were offering.

Well, Robert has explained the requirements we're trying to satisfy. Can you suggest how we might implement these in a way that you would be happy with?

Ben.

Signature · 3 lines
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.