Skip to content

Commit c337051

Browse files
gfreewindsimonwunderlich
authored andcommitted
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 <[email protected]> [[email protected]: Moved NET_XMIT_CN handling to batadv_send_skb_packet] Signed-off-by: Sven Eckelmann <[email protected]> Signed-off-by: Simon Wunderlich <[email protected]>
1 parent 0843f19 commit c337051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/batman-adv/send.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ int batadv_send_skb_packet(struct sk_buff *skb,
115115
* congestion and traffic shaping, it drops and returns NET_XMIT_DROP
116116
* (which is > 0). This will not be treated as an error.
117117
*/
118-
return dev_queue_xmit(skb);
118+
return net_xmit_eval(dev_queue_xmit(skb));
119119
send_skb_err:
120120
kfree_skb(skb);
121121
return NET_XMIT_DROP;

0 commit comments

Comments
 (0)