|
@@ -860,10 +860,12 @@ static struct sk_buff *be_xmit_workarounds(struct be_adapter *adapter,
|
|
|
|
|
|
/* For padded packets, BE HW modifies tot_len field in IP header
|
|
|
* incorrecly when VLAN tag is inserted by HW.
|
|
|
+ * For padded packets, Lancer computes incorrect checksum.
|
|
|
*/
|
|
|
eth_hdr_len = ntohs(skb->protocol) == ETH_P_8021Q ?
|
|
|
VLAN_ETH_HLEN : ETH_HLEN;
|
|
|
- if (skb->len <= 60 && vlan_tx_tag_present(skb) &&
|
|
|
+ if (skb->len <= 60 &&
|
|
|
+ (lancer_chip(adapter) || vlan_tx_tag_present(skb)) &&
|
|
|
is_ipv4_pkt(skb)) {
|
|
|
ip = (struct iphdr *)ip_hdr(skb);
|
|
|
pskb_trim(skb, eth_hdr_len + ntohs(ip->tot_len));
|