aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Bowling <kbowling@FreeBSD.org>2022-05-17 03:15:34 +0000
committerKevin Bowling <kbowling@FreeBSD.org>2022-05-20 16:37:55 +0000
commitc543b99832200538c0e0faa5f5c7a96b01b47b77 (patch)
tree466fcf4b7b05ea552fb408a866426c5f4c70e825
parentca4703ef1f65dbeb8c7870dec7afc7cdf026d217 (diff)
downloadsrc-c543b99832200538c0e0faa5f5c7a96b01b47b77.tar.gz
src-c543b99832200538c0e0faa5f5c7a96b01b47b77.zip
igc: Increase rx_buffer_size local variable to 32b
Apply 6987c47569b377f4b6eba9966afdedfb1b39fca8 to igc. This is not expected to have any benefit on current parts with current observed PBA sizes but will avoid surprises if they are increased in future chips. Approved by: grehan Differential Revision: https://reviews.freebsd.org/D35217 (cherry picked from commit 9b88ecd674ac292cb6d7ab644595091edd6ec87b)
-rw-r--r--sys/dev/igc/if_igc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/igc/if_igc.c b/sys/dev/igc/if_igc.c
index d15e5917fcd9..e5c42e0eb235 100644
--- a/sys/dev/igc/if_igc.c
+++ b/sys/dev/igc/if_igc.c
@@ -1610,7 +1610,7 @@ igc_reset(if_ctx_t ctx)
device_t dev = iflib_get_dev(ctx);
struct igc_adapter *adapter = iflib_get_softc(ctx);
struct igc_hw *hw = &adapter->hw;
- u16 rx_buffer_size;
+ u32 rx_buffer_size;
u32 pba;
INIT_DEBUGOUT("igc_reset: begin");