Skip to content

Commit 7580e0a

Browse files
rosslagerwallkuba-moo
authored andcommitted
be2net: Extend xmit workaround to BE3 chip
We have seen a bug where the NIC incorrectly changes the length in the IP header of a padded packet to include the padding bytes. The driver already has a workaround for this so do the workaround for this NIC too. This resolves the issue. The NIC in question identifies itself as follows: [ 8.828494] be2net 0000:02:00.0: FW version is 10.7.110.31 [ 8.834759] be2net 0000:02:00.0: Emulex OneConnect(be3): PF FLEX10 port 1 02:00.0 Ethernet controller: Emulex Corporation OneConnect 10Gb NIC (be3) (rev 01) Fixes: ca34fe3 ("be2net: fix wrong usage of adapter->generation") Signed-off-by: Ross Lagerwall <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent e438eda commit 7580e0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/emulex/benet/be_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,8 +1135,8 @@ static struct sk_buff *be_lancer_xmit_workarounds(struct be_adapter *adapter,
11351135
eth_hdr_len = ntohs(skb->protocol) == ETH_P_8021Q ?
11361136
VLAN_ETH_HLEN : ETH_HLEN;
11371137
if (skb->len <= 60 &&
1138-
(lancer_chip(adapter) || skb_vlan_tag_present(skb)) &&
1139-
is_ipv4_pkt(skb)) {
1138+
(lancer_chip(adapter) || BE3_chip(adapter) ||
1139+
skb_vlan_tag_present(skb)) && is_ipv4_pkt(skb)) {
11401140
ip = (struct iphdr *)ip_hdr(skb);
11411141
pskb_trim(skb, eth_hdr_len + ntohs(ip->tot_len));
11421142
}

0 commit comments

Comments
 (0)