summaryrefslogtreecommitdiffstats
path: root/drivers/net/macvlan.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-05-10 04:51:02 +0000
committerDavid S. Miller <davem@davemloft.net>2010-05-16 00:42:15 -0700
commit2d6c9ffcca7808f42ba6b953da0ba60e19a9cbbd (patch)
treec2406d2059ae2a554a26ee0d67c4aa45d02e2635 /drivers/net/macvlan.c
parenta465419b1febb603821f924805529cff89cafeed (diff)
downloadblackbird-op-linux-2d6c9ffcca7808f42ba6b953da0ba60e19a9cbbd.tar.gz
blackbird-op-linux-2d6c9ffcca7808f42ba6b953da0ba60e19a9cbbd.zip
net: congestion notifications are not dropped packets
vlan/macvlan start_xmit() can inform caller of congestion with NET_XMIT_CN return value. This doesnt mean packet was dropped. Increment normal stat counters instead of tx_dropped. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Acked-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/macvlan.c')
-rw-r--r--drivers/net/macvlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index 1b78c0057a8d..4e238afab4a3 100644
--- a/drivers/net/macvlan.c
+++ b/drivers/net/macvlan.c
@@ -239,7 +239,7 @@ netdev_tx_t macvlan_start_xmit(struct sk_buff *skb,
int ret;
ret = macvlan_queue_xmit(skb, dev);
- if (likely(ret == NET_XMIT_SUCCESS)) {
+ if (likely(ret == NET_XMIT_SUCCESS || ret == NET_XMIT_CN)) {
txq->tx_packets++;
txq->tx_bytes += len;
} else
OpenPOWER on IntegriCloud