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