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 be18cce commit 7360a1fCopy full SHA for 7360a1f
drivers/net/vrf.c
@@ -341,14 +341,15 @@ static netdev_tx_t is_ip_tx_frame(struct sk_buff *skb, struct net_device *dev)
341
342
static netdev_tx_t vrf_xmit(struct sk_buff *skb, struct net_device *dev)
343
{
344
+ int len = skb->len;
345
netdev_tx_t ret = is_ip_tx_frame(skb, dev);
346
347
if (likely(ret == NET_XMIT_SUCCESS || ret == NET_XMIT_CN)) {
348
struct pcpu_dstats *dstats = this_cpu_ptr(dev->dstats);
349
350
u64_stats_update_begin(&dstats->syncp);
351
dstats->tx_pkts++;
- dstats->tx_bytes += skb->len;
352
+ dstats->tx_bytes += len;
353
u64_stats_update_end(&dstats->syncp);
354
} else {
355
this_cpu_inc(dev->dstats->tx_drps);
0 commit comments