1 From d74187cab7927d3496c01c97051d9c539067ad1b Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Sat, 23 Apr 2016 09:28:25 +0200
4 Subject: [PATCH 86/91] net-next: mediatek: dropped rx packets are not being
7 There are 2 places inside mtk_poll_rx where rx_dropped is not being
8 incremented properly. Fix this by adding the missing code to increment
11 Signed-off-by: John Crispin <blogic@openwrt.org>
13 drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 ++
14 1 file changed, 2 insertions(+)
16 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
17 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
18 @@ -826,6 +826,7 @@ static int mtk_poll_rx(struct napi_struc
20 if (unlikely(dma_mapping_error(&netdev->dev, dma_addr))) {
21 skb_free_frag(new_data);
22 + netdev->stats.rx_dropped++;
26 @@ -833,6 +834,7 @@ static int mtk_poll_rx(struct napi_struc
27 skb = build_skb(data, ring->frag_size);
29 put_page(virt_to_head_page(new_data));
30 + netdev->stats.rx_dropped++;
33 skb_reserve(skb, NET_SKB_PAD + NET_IP_ALIGN);