summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2009-11-10 07:14:24 +0100
committerDavid S. Miller <davem@davemloft.net>2009-11-13 23:07:33 +0100
commitcbbef5e183079455763fc470ccf69008f92ab4b6 (patch)
tree04063bfe9498e622623ed3e46155bcbd9b18c9c0 /drivers/net
parentnet: allow to propagate errors through ->ndo_hard_start_xmit() (diff)
downloadlinux-cbbef5e183079455763fc470ccf69008f92ab4b6.tar.xz
linux-cbbef5e183079455763fc470ccf69008f92ab4b6.zip
vlan/macvlan: propagate transmission state to upper layers
Both vlan and macvlan devices usually don't use a qdisc and immediately queue packets to the underlying device. Propagate transmission state of the underlying device to the upper layers so they can react on congestion and/or inform the sending process. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-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 d7dba3f6f763..271aa7e1d033 100644
--- a/drivers/net/macvlan.c
+++ b/drivers/net/macvlan.c
@@ -202,7 +202,7 @@ static netdev_tx_t macvlan_start_xmit(struct sk_buff *skb,
} else
txq->tx_dropped++;
- return NETDEV_TX_OK;
+ return ret;
}
static int macvlan_hard_header(struct sk_buff *skb, struct net_device *dev,