Thread (21 messages) flat view 21 messages, 7 authors, 2015-10-10

Re: [PATCH net-next 0/6] net: dsa: push switchdev prepare phase in FDB ops

From: Vivien Didelot <hidden>
Date: 2015-10-08 13:32:58
Also in: lkml

Hi David,

On Oct. Thursday 08 (41) 05:28 AM, David Miller wrote:
From: Vivien Didelot <redacted>
Date: Wed,  7 Oct 2015 19:48:25 -0400
quoted
The first 3 patches removes the dsa.h include from linux/netdevice.h, which
broke the inclusion of switchdev.h in dsa.h.
I still don't agree with bloating up struct netdevice just to deal with
an include file ordering issue, sorry.
Yes, I just saw your reply on the first version. I will resend the
patchset with the forward declarations instead.

But looking at the issue that Jiri and the kbuild bot pointed out
earlier in the thread, we must agree that having the DSA header in
netdevice.h is wrong.

There are 2 points to note here:

* checking a "rcv" member of a DSA-specific structure to anwser the
  question "does this interface uses hardware-inserted tag?" is not
  generic and not robust at all.

* the "dsa_ptr" of net_device is just used to access the dsa_switch_tree
  from DSA packet_type receive functions. There must be another way to
  pass it, maybe from a netdev_priv or the packet_type->af_packet_priv?

Thanks,
-v
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help