From: Eric Dumazet Date: Fri, 31 Oct 2014 18:47:54 +0000 (-0700) Subject: bonding: add bond_tx_drop() helper X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~301 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31aa860e0aafd3a7c5a31c2aae67b6534115ea41;p=pandora-kernel.git bonding: add bond_tx_drop() helper Because bonding stats are usually sum of slave stats, it was not easy to account for tx drops at bonding layer. We can use dev->tx_dropped for this, as this counter is later added to the device stats (in dev_get_stats()) This extends the idea we had in commit ee6377147409a ("bonding: Simplify the xmit function for modes that use xmit_hash") for bond_3ad_xor_xmit() to other bonding modes. Signed-off-by: Eric Dumazet Cc: Mahesh Bandewar Reviewed-by: Nikolay Aleksandrov Acked-by: Mahesh Bandewar Signed-off-by: David S. Miller --- Reading git-diff-tree failed