diff options
Diffstat (limited to 'drivers/net/veth.c')
-rw-r--r-- | drivers/net/veth.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/veth.c b/drivers/net/veth.c index 1097c72e44d5..190f784c9cfe 100644 --- a/drivers/net/veth.c +++ b/drivers/net/veth.c | |||
@@ -171,6 +171,7 @@ static int veth_xmit(struct sk_buff *skb, struct net_device *dev) | |||
171 | if (skb->len > (rcv->mtu + MTU_PAD)) | 171 | if (skb->len > (rcv->mtu + MTU_PAD)) |
172 | goto rx_drop; | 172 | goto rx_drop; |
173 | 173 | ||
174 | skb->tstamp.tv64 = 0; | ||
174 | skb->pkt_type = PACKET_HOST; | 175 | skb->pkt_type = PACKET_HOST; |
175 | skb->protocol = eth_type_trans(skb, rcv); | 176 | skb->protocol = eth_type_trans(skb, rcv); |
176 | if (dev->features & NETIF_F_NO_CSUM) | 177 | if (dev->features & NETIF_F_NO_CSUM) |
@@ -189,17 +190,17 @@ static int veth_xmit(struct sk_buff *skb, struct net_device *dev) | |||
189 | rcv_stats->rx_packets++; | 190 | rcv_stats->rx_packets++; |
190 | 191 | ||
191 | netif_rx(skb); | 192 | netif_rx(skb); |
192 | return 0; | 193 | return NETDEV_TX_OK; |
193 | 194 | ||
194 | tx_drop: | 195 | tx_drop: |
195 | kfree_skb(skb); | 196 | kfree_skb(skb); |
196 | stats->tx_dropped++; | 197 | stats->tx_dropped++; |
197 | return 0; | 198 | return NETDEV_TX_OK; |
198 | 199 | ||
199 | rx_drop: | 200 | rx_drop: |
200 | kfree_skb(skb); | 201 | kfree_skb(skb); |
201 | rcv_stats->rx_dropped++; | 202 | rcv_stats->rx_dropped++; |
202 | return 0; | 203 | return NETDEV_TX_OK; |
203 | } | 204 | } |
204 | 205 | ||
205 | /* | 206 | /* |