Skip to content

Commit 6d43131

Browse files
ecree-solarflaredavem330
authored andcommitted
sfc: fix IPID endianness in TSOv2
The value we read from the header is in network byte order, whereas EFX_POPULATE_QWORD_* takes values in host byte order (which it then converts to little-endian, as MCDI is little-endian). Fixes: e9117e5 ("sfc: Firmware-Assisted TSO version 2") Signed-off-by: Edward Cree <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d0346b0 commit 6d43131

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/sfc

1 file changed

+1
-1
lines changed

drivers/net/ethernet/sfc/ef10.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2183,7 +2183,7 @@ static int efx_ef10_tx_tso_desc(struct efx_tx_queue *tx_queue,
21832183
/* Modify IPv4 header if needed. */
21842184
ip->tot_len = 0;
21852185
ip->check = 0;
2186-
ipv4_id = ip->id;
2186+
ipv4_id = ntohs(ip->id);
21872187
} else {
21882188
/* Modify IPv6 header if needed. */
21892189
struct ipv6hdr *ipv6 = ipv6_hdr(skb);

0 commit comments

Comments
 (0)