batman-adv: Treat NET_XMIT_CN as transmit successfully
authorGao Feng <gfree.wind@gmail.com>
Mon, 21 Nov 2016 15:00:32 +0000 (23:00 +0800)
committerSimon Wunderlich <sw@simonwunderlich.de>
Thu, 26 Jan 2017 07:41:18 +0000 (08:41 +0100)
commitc33705188c493b7de3b8dc2956d67de91b444727
treef6875227138a7585b73baa427b527242322d88f5
parent0843f197c46dd3c432a3202de80e8bc1fcb96a6b
batman-adv: Treat NET_XMIT_CN as transmit successfully

The tc could return NET_XMIT_CN as one congestion notification, but
it does not mean the packet is lost. Other modules like ipvlan,
macvlan, and others treat NET_XMIT_CN as success too.

So batman-adv should handle NET_XMIT_CN also as NET_XMIT_SUCCESS.

Signed-off-by: Gao Feng <gfree.wind@gmail.com>
[sven@narfation.org: Moved NET_XMIT_CN handling to batadv_send_skb_packet]
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/send.c