-/* $OpenBSD: if_ix.c,v 1.198 2023/07/08 09:01:30 jmatthew Exp $ */
+/* $OpenBSD: if_ix.c,v 1.199 2023/07/10 19:36:54 jan Exp $ */
/******************************************************************************
#include <dev/pci/if_ix.h>
#include <dev/pci/ixgbe_type.h>
+/*
+ * Our TCP/IP Stack could not handle packets greater than MAXMCLBYTES.
+ * This interface could not handle packets greater than IXGBE_TSO_SIZE.
+ */
+CTASSERT(MAXMCLBYTES <= IXGBE_TSO_SIZE);
+
/*********************************************************************
* Driver version
*********************************************************************/
/* Create the descriptor buffer dma maps */
for (i = 0; i < sc->num_tx_desc; i++) {
txbuf = &txr->tx_buffers[i];
- error = bus_dmamap_create(txr->txdma.dma_tag, IXGBE_TSO_SIZE,
+ error = bus_dmamap_create(txr->txdma.dma_tag, MAXMCLBYTES,
sc->num_segs, PAGE_SIZE, 0,
BUS_DMA_NOWAIT, &txbuf->map);