Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48c38839 authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

net/hyperv: rx_bytes should account the ether header size



skb->len after call eth_type_trans() does not include the ether
header size, but rx_bytes should account it.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a7ed07d5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -298,7 +298,7 @@ int netvsc_recv_callback(struct hv_device *device_obj,
	skb->ip_summed = CHECKSUM_NONE;

	net->stats.rx_packets++;
	net->stats.rx_bytes += skb->len;
	net->stats.rx_bytes += packet->total_data_buflen;

	/*
	 * Pass the skb back up. Network stack will deallocate the skb when it