Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d172c993 authored by Hamad Kadmany's avatar Hamad Kadmany Committed by Lior David
Browse files

wil6210: remove fake support for RXHASH



Setting the same fake hash to all skbs prevents
distributing different flows to different CPU cores.

Change-Id: I0d2d0a2e937bc32061914bc61bd49c652b79b83b
Signed-off-by: default avatarHamad Kadmany <hkadmany@codeaurora.org>
Signed-off-by: default avatarLior David <liord@codeaurora.org>
Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Git-commit: a078c4cf0197c71a829ea927d1287e6b26a52c92
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git


Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
parent fde22d16
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -342,8 +342,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));
+0 −8
Original line number Diff line number Diff line
@@ -732,14 +732,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)) {