linux/net/hsr
Arvid Brodin f266a683a4 net/hsr: Better frame dispatch
This patch removes the separate paths for frames coming from the outside, and
frames sent from the HSR device, and instead makes all frames go through
hsr_forward_skb() in hsr_forward.c. This greatly improves code readability and
also opens up the possibility for future support of the HSR Interlink device
that is the basis for HSR RedBoxes and HSR QuadBoxes, as well as VLAN
compatibility.

Other improvements:
* A reduction in the number of times an skb is copied on machines without
  HAVE_EFFICIENT_UNALIGNED_ACCESS, which improves throughput somewhat.
* Headers are now created using the standard eth_header(), and using the
  standard hard_header_len.
* Each HSR slave now gets its own private skb, so slave-specific fields can be
  correctly set.

Signed-off-by: Arvid Brodin <arvid.brodin@alten.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-07-08 11:35:31 -07:00
..
hsr_device.c net/hsr: Better frame dispatch 2014-07-08 11:35:31 -07:00
hsr_device.h net/hsr: Operstate handling cleanup. 2014-07-08 11:35:30 -07:00
hsr_forward.c net/hsr: Better frame dispatch 2014-07-08 11:35:31 -07:00
hsr_forward.h net/hsr: Better frame dispatch 2014-07-08 11:35:31 -07:00
hsr_framereg.c net/hsr: Better frame dispatch 2014-07-08 11:35:31 -07:00
hsr_framereg.h net/hsr: Better frame dispatch 2014-07-08 11:35:31 -07:00
hsr_main.c net/hsr: Better frame dispatch 2014-07-08 11:35:31 -07:00
hsr_main.h net/hsr: Better frame dispatch 2014-07-08 11:35:31 -07:00
hsr_netlink.c net/hsr: Better frame dispatch 2014-07-08 11:35:31 -07:00
hsr_netlink.h net/hsr: Use list_head (and rcu) instead of array for slave devices. 2014-07-08 11:35:31 -07:00
hsr_slave.c net/hsr: Better frame dispatch 2014-07-08 11:35:31 -07:00
hsr_slave.h net/hsr: Better frame dispatch 2014-07-08 11:35:31 -07:00
Kconfig
Makefile net/hsr: Better frame dispatch 2014-07-08 11:35:31 -07:00