git: c543b9983220 - stable/12 - igc: Increase rx_buffer_size local variable to 32b

From: Kevin Bowling <kbowling_at_FreeBSD.org>
Date: Fri, 20 May 2022 16:38:07 UTC
The branch stable/12 has been updated by kbowling (ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=c543b99832200538c0e0faa5f5c7a96b01b47b77

commit c543b99832200538c0e0faa5f5c7a96b01b47b77
Author:     Kevin Bowling <kbowling@FreeBSD.org>
AuthorDate: 2022-05-17 03:15:34 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2022-05-20 16:37:55 +0000

    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)
---
 sys/dev/igc/if_igc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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");