bonding: split alb_send_learning_packets()
authorVeaceslav Falico <vfalico@redhat.com>
Wed, 28 Aug 2013 21:25:13 +0000 (23:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Aug 2013 20:19:43 +0000 (16:19 -0400)
commit7aa6498123a67001e950808ce6eb5930a4c5945f
tree7b516d3d2e4fe71e11ef1269ba9517c4aff066de
parenta59d3d21ea7636d4cc7fb921104b9b4a59196839
bonding: split alb_send_learning_packets()

Create alb_send_lp_vid(), which will handle the skb/lp creation, vlan
tagging and sending, and use it in alb_send_learning_packets().

This way all the logic remains in alb_send_learning_packets(), which
becomes a lot more cleaner and easier to understand.

CC: Jay Vosburgh <fubar@us.ibm.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_alb.c