qtnfmac: switch to napi_gro_receive
authorSergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Tue, 15 Aug 2017 13:06:32 +0000 (16:06 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 17 Aug 2017 07:04:54 +0000 (10:04 +0300)
Use napi_gro_receive() rather than netif_receive_skb() to improve
performance when GRO is enabled.

Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c

index ae8acc1bf291f6fcecb1d27789dcc1c822fb02d7..08b35dc30bc80cd31a23ef0d4a4dd4f023bf7515 100644 (file)
@@ -762,7 +762,7 @@ static int qtnf_rx_poll(struct napi_struct *napi, int budget)
                                ndev->stats.rx_bytes += skb->len;
 
                                skb->protocol = eth_type_trans(skb, ndev);
-                               netif_receive_skb(skb);
+                               napi_gro_receive(napi, skb);
                        } else {
                                pr_debug("drop untagged skb\n");
                                bus->mux_dev.stats.rx_dropped++;