]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: drop_monitor aware
authorEric Dumazet <edumazet@google.com>
Wed, 13 Jun 2012 05:30:07 +0000 (05:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jun 2012 23:00:26 +0000 (16:00 -0700)
commitb36d732bfaca7a42d4e43f6694a0f08f49af4745
tree8772dad022f5f6ae922a68b5b398dec561d1a1c0
parent6c89120a4bcbc1367c3ef3408fcf9233fba9c0c7
bonding: drop_monitor aware

When packets are dropped in TX path, its better to use kfree_skb()
instead of dev_kfree_skb() to give proper drop_monitor events.

Also move the kfree_skb() call after read_unlock() in bond_alb_xmit()
and bond_xmit_activebackup()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_3ad.c
drivers/net/bonding/bond_alb.c
drivers/net/bonding/bond_main.c