netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] net: ipconfig: allow IP-Config over DSA devices
@ 2014-05-30 18:08 Florian Fainelli
  2014-05-30 18:08 ` [PATCH net-next] net: ipconfig: handle DSA enabled network devices Florian Fainelli
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Florian Fainelli @ 2014-05-30 18:08 UTC (permalink / raw)
  To: netdev; +Cc: davem, buytenh, jiri, Florian Fainelli

Hi David, Lennert, Jiri,

This small patch allows us to use the kernel IP auto-configuration on DSA
enabled devices.

I initially started implementing the netdev_upper_dev_link() calls for the
DSA slave devices, but ended up realizing that although this might be useful,
the other drivers or protocols implementing these master/slave relantionship
are the bonding driver and the VLAN code.

None of these interfaces (bonding or VLAN) can be created by the kernel
without modifications, which means that user-space is there, and so we could
pivot_root over a NFS mounted share for instance, hence making the master/slave
net_device relationship not so useful for IP-Config.

This is not the case with DSA devices which are solely created by the kernel
based on platform configuration.

Let me know your thoughts. If you feel like something like:
netdev_is_upper_dev() or something like that is better.

Thanks!

Florian Fainelli (1):
  net: ipconfig: handle DSA enabled network devices

 net/ipv4/ipconfig.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-06-05 17:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-30 18:08 [PATCH net-next] net: ipconfig: allow IP-Config over DSA devices Florian Fainelli
2014-05-30 18:08 ` [PATCH net-next] net: ipconfig: handle DSA enabled network devices Florian Fainelli
2014-05-31  7:04 ` [PATCH net-next] net: ipconfig: allow IP-Config over DSA devices Jiri Pirko
2014-06-02 18:02   ` Florian Fainelli
2014-06-05  7:01 ` David Miller
2014-06-05 17:47   ` Florian Fainelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).