From 44ea871297c8b8c652f652abe3f6636548b5e349 Mon Sep 17 00:00:00 2001 From: Stephan de Wit Date: Wed, 21 Jun 2023 10:11:57 +0000 Subject: [PATCH] axgbe: enable RSF to prevent zero-length packets while in Netmap mode Initially, RSF (Receive Queue Store and Forward) was disabled for unknown reasons, but the cut-through mode that's enabled as a result seems to send 0 length packets up to the DMA when the RX queue is full. --- sys/dev/axgbe/if_axgbe_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/axgbe/if_axgbe_pci.c b/sys/dev/axgbe/if_axgbe_pci.c index 194dc0c64e1..0a869f908c6 100644 --- a/sys/dev/axgbe/if_axgbe_pci.c +++ b/sys/dev/axgbe/if_axgbe_pci.c @@ -1378,7 +1378,7 @@ xgbe_default_config(struct xgbe_prv_data *pdata) pdata->tx_sf_mode = MTL_TSF_ENABLE; pdata->tx_threshold = MTL_TX_THRESHOLD_64; pdata->tx_osp_mode = DMA_OSP_ENABLE; - pdata->rx_sf_mode = MTL_RSF_DISABLE; + pdata->rx_sf_mode = MTL_RSF_ENABLE; pdata->rx_threshold = MTL_RX_THRESHOLD_64; pdata->pause_autoneg = 1; pdata->phy_speed = SPEED_UNKNOWN;