netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] net: remove dsa.h from netdevice.h
@ 2015-10-06 21:54 Vivien Didelot
  2015-10-06 21:54 ` [PATCH net-next 1/3] net: dsa: add uses_hw_tag Vivien Didelot
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Vivien Didelot @ 2015-10-06 21:54 UTC (permalink / raw)
  To: netdev
  Cc: linux-kernel, kernel, David S. Miller, Scott Feldman, Jiri Pirko,
	Florian Fainelli, Andrew Lunn, Neil Armstrong, Sergei Shtylyov,
	Vivien Didelot

In order to push switchdev objects down to DSA drivers, I need to include
switchdev.h in dsa.h. But compilation fails because of a circular dependency
issue, since dsa.h is also included in linux/netdevice.h.

dsa.h is included for two purposes: to have the definition of struct
dsa_switch_tree; and to have access to dsa_uses_tagged_protocol(), used by
netdev_uses_dsa().

This patchset forward declares struct dsa_switch_tree; adds a new uses_hw_tag
boolean to struct net_device, which is more explicit than the DSA helper, and
finally get rid of the dsa.h include.

With this patchset, switchdev.h can safely be included in dsa.h.

Vivien Didelot (3):
  net: dsa: add uses_hw_tag
  net: dsa: include dsa.h in dsa_priv.h
  net: remove dsa.h include from linux/netdevice.h

 include/linux/netdevice.h | 9 ++++++---
 include/net/dsa.h         | 5 -----
 net/dsa/dsa.c             | 1 +
 net/dsa/dsa_priv.h        | 1 +
 4 files changed, 8 insertions(+), 8 deletions(-)

-- 
2.6.0

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

end of thread, other threads:[~2015-10-08 11:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-06 21:54 [PATCH net-next 0/3] net: remove dsa.h from netdevice.h Vivien Didelot
2015-10-06 21:54 ` [PATCH net-next 1/3] net: dsa: add uses_hw_tag Vivien Didelot
2015-10-06 21:54 ` [PATCH net-next 2/3] net: dsa: include dsa.h in dsa_priv.h Vivien Didelot
2015-10-06 21:54 ` [PATCH net-next 3/3] net: remove dsa.h include from linux/netdevice.h Vivien Didelot
2015-10-07  0:42 ` [PATCH net-next 0/3] net: remove dsa.h from netdevice.h Florian Fainelli
2015-10-07 16:27   ` Vivien Didelot
2015-10-07 17:20 ` Jiri Pirko
2015-10-08 11:57 ` David Miller

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).