summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_bnxt.c
diff options
context:
space:
mode:
authorJan Klemkow <jan@cvs.openbsd.org>2024-05-07 18:35:24 +0000
committerJan Klemkow <jan@cvs.openbsd.org>2024-05-07 18:35:24 +0000
commit0f51a295a2383ade5ee6777e9e559a69d12370e8 (patch)
treecc7501d85adbef6e88ccfd8a7e60d399b5024aae /sys/dev/pci/if_bnxt.c
parent2719d5eda977dc8731c77147bfc91c1338ab615d (diff)
Additional check for TSO packets with 0 MSS.
Tested by bluhm ok bluhm@
Diffstat (limited to 'sys/dev/pci/if_bnxt.c')
-rw-r--r--sys/dev/pci/if_bnxt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_bnxt.c b/sys/dev/pci/if_bnxt.c
index c973a624bc6..3dadfafca81 100644
--- a/sys/dev/pci/if_bnxt.c
+++ b/sys/dev/pci/if_bnxt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bnxt.c,v 1.48 2024/04/12 19:27:43 jan Exp $ */
+/* $OpenBSD: if_bnxt.c,v 1.49 2024/05/07 18:35:23 jan Exp $ */
/*-
* Broadcom NetXtreme-C/E network driver.
*
@@ -1427,7 +1427,7 @@ bnxt_start(struct ifqueue *ifq)
uint32_t paylen;
ether_extract_headers(m, &ext);
- if (ext.tcp) {
+ if (ext.tcp && m->m_pkthdr.ph_mss > 0) {
lflags |= TX_BD_LONG_LFLAGS_LSO;
hdrsize = sizeof(*ext.eh);
if (ext.ip4 || ext.ip6)