We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da945de commit 7f1fc82Copy full SHA for 7f1fc82
drivers/net/vrf.c
@@ -346,14 +346,15 @@ static netdev_tx_t is_ip_tx_frame(struct sk_buff *skb, struct net_device *dev)
346
347
static netdev_tx_t vrf_xmit(struct sk_buff *skb, struct net_device *dev)
348
{
349
+ int len = skb->len;
350
netdev_tx_t ret = is_ip_tx_frame(skb, dev);
351
352
if (likely(ret == NET_XMIT_SUCCESS || ret == NET_XMIT_CN)) {
353
struct pcpu_dstats *dstats = this_cpu_ptr(dev->dstats);
354
355
u64_stats_update_begin(&dstats->syncp);
356
dstats->tx_pkts++;
- dstats->tx_bytes += skb->len;
357
+ dstats->tx_bytes += len;
358
u64_stats_update_end(&dstats->syncp);
359
} else {
360
this_cpu_inc(dev->dstats->tx_drps);
0 commit comments