From: John Crispin Date: Mon, 19 Jun 2017 13:37:06 +0000 (+0200) Subject: net-next: mediatek: set the rx_queue to 0 X-Git-Tag: v4.14-rc1~596^2~142^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2d5e7b4102deac784373464a8fd9f3eaa53afc0;p=platform%2Fkernel%2Flinux-rpi3.git net-next: mediatek: set the rx_queue to 0 The get_rps_cpu() function will not do any RPS on the data flow when no queue is setup and always use the current cpu where the IRQ was handled to also handle the backlog. As we only have one physical queue we always set this to 0 unconditionally. Signed-off-by: John Crispin Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c index 462d1e8..adaaafc 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c @@ -992,6 +992,7 @@ static int mtk_poll_rx(struct napi_struct *napi, int budget, RX_DMA_VID(trxd.rxd3)) __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), RX_DMA_VID(trxd.rxd3)); + skb_record_rx_queue(skb, 0); napi_gro_receive(napi, skb); ring->data[idx] = new_data;