Stefan Hajnoczi c74831a02c rtl8139: keep Tx command mode 0 and 1 separate
There are two Tx Descriptor formats called mode 0 and mode 1. The mode
is determined by the Large Send bit.

CP_TX_IPCS (bit 18) is defined in mode 1 but the code checks the bit
unconditionally. In mode 0 bit 18 is part of the Large Send MSS value.

Explicitly check the Large Send bit to distinguish Tx command modes.
This avoids bugs where modes are confused. Note that I didn't find any
actual bugs aside from needlessly computing the IP checksum when the
Large Send bit is enabled.

Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20221117165554.1773409-3-stefanha@redhat.com>
2022-11-21 09:28:43 -05:00
..
2022-10-25 11:37:17 -04:00
2022-10-31 11:32:07 +01:00
2022-10-31 18:48:23 +00:00
2022-09-04 07:02:56 +01:00
2022-10-27 11:34:31 +01:00
2022-11-16 10:15:26 +01:00
2022-10-24 11:20:15 +02:00
2022-11-11 09:12:10 +01:00