wil6210: remove fake support for RXHASH
authorHamad Kadmany <hkadmany@codeaurora.org>
Wed, 31 Oct 2018 08:52:09 +0000 (10:52 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 6 Nov 2018 16:02:01 +0000 (18:02 +0200)
Setting the same fake hash to all skbs prevents
distributing different flows to different CPU cores.

Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
Signed-off-by: Lior David <liord@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/netdev.c
drivers/net/wireless/ath/wil6210/txrx.c

index 7a78a06..64fa1a2 100644 (file)
@@ -345,8 +345,7 @@ wil_vif_alloc(struct wil6210_priv *wil, const char *name,
        ndev->ieee80211_ptr = wdev;
        ndev->hw_features = NETIF_F_HW_CSUM | NETIF_F_RXCSUM |
                            NETIF_F_SG | NETIF_F_GRO |
-                           NETIF_F_TSO | NETIF_F_TSO6 |
-                           NETIF_F_RXHASH;
+                           NETIF_F_TSO | NETIF_F_TSO6;
 
        ndev->features |= ndev->hw_features;
        SET_NETDEV_DEV(ndev, wiphy_dev(wdev->wiphy));
index cc5f263..70eceec 100644 (file)
@@ -743,14 +743,6 @@ void wil_netif_rx_any(struct sk_buff *skb, struct net_device *ndev)
 
        stats = &wil->sta[cid].stats;
 
-       if (ndev->features & NETIF_F_RXHASH)
-               /* fake L4 to ensure it won't be re-calculated later
-                * set hash to any non-zero value to activate rps
-                * mechanism, core will be chosen according
-                * to user-level rps configuration.
-                */
-               skb_set_hash(skb, 1, PKT_HASH_TYPE_L4);
-
        skb_orphan(skb);
 
        if (security && (wil->txrx_ops.rx_crypto_check(wil, skb) != 0)) {