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

Commit 3df40aad authored by Suresh Reddy's avatar Suresh Reddy Committed by David S. Miller
Browse files

be2net: Fix HW stall issue in Lancer



Lancer HW cannot handle a TSO packet with a single segment.
Disable TSO/GSO for such packets.

Signed-off-by: default avatarSuresh Reddy <suresh.reddy@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2c0aa086
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -5104,9 +5104,12 @@ static netdev_features_t be_features_check(struct sk_buff *skb,
			features &= ~NETIF_F_TSO6;

		/* Lancer cannot handle the packet with MSS less than 256.
		 * Also it can't handle a TSO packet with a single segment
		 * Disable the GSO support in such cases
		 */
		if (lancer_chip(adapter) && skb_shinfo(skb)->gso_size < 256)
		if (lancer_chip(adapter) &&
		    (skb_shinfo(skb)->gso_size < 256 ||
		     skb_shinfo(skb)->gso_segs == 1))
			features &= ~NETIF_F_GSO_MASK;
	}