bonding: move processing of recv handlers into handle_frame()
Since now when bonding uses rx_handler, all traffic going into bond device goes thru bond_handle_frame. So there's no need to go back into bonding code later via ptype handlers. This patch converts original ptype handlers into "bonding receive probes". These functions are called from bond_handle_frame and they are registered per-mode. Note that vlan packets are also handled because they are always untagged thanks to vlan_untag() Note that this also allows arpmon for eth-bond-bridge-vlan topology. Signed-off-by:Jiri Pirko <jpirko@redhat.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/bonding/bond_3ad.c 5 additions, 24 deletionsdrivers/net/bonding/bond_3ad.c
- drivers/net/bonding/bond_3ad.h 2 additions, 2 deletionsdrivers/net/bonding/bond_3ad.h
- drivers/net/bonding/bond_alb.c 11 additions, 35 deletionsdrivers/net/bonding/bond_alb.c
- drivers/net/bonding/bond_alb.h 0 additions, 1 deletiondrivers/net/bonding/bond_alb.h
- drivers/net/bonding/bond_main.c 23 additions, 98 deletionsdrivers/net/bonding/bond_main.c
- drivers/net/bonding/bond_sysfs.c 0 additions, 6 deletionsdrivers/net/bonding/bond_sysfs.c
- drivers/net/bonding/bonding.h 2 additions, 2 deletionsdrivers/net/bonding/bonding.h
- net/core/dev.c 0 additions, 21 deletionsnet/core/dev.c
Loading
Please register or sign in to comment