[4/4] net-next: mediatek: set the rx_queue to 0

Submitted by John Crispin on June 19, 2017, 1:37 p.m.


Message ID 20170619133706.3415-5-john@phrozen.org
State Accepted
Delegated to: David Miller
Headers show

Commit Message

John Crispin June 19, 2017, 1:37 p.m.
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 <john@phrozen.org>
 drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
index 462d1e83e254..adaaafc20532 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,
 			__vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q),
+		skb_record_rx_queue(skb, 0);
 		napi_gro_receive(napi, skb);
 		ring->data[idx] = new_data;