Commit bfb522f3 authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

eth: fbnic: fix typo in compile assert



We should be validating the Rx count on the Rx struct,
not the Tx struct. There is no real change here, rx_stats
and tx_stats are instances of the same struct.

Acked-by: default avatarJoe Damato <jdamato@fastly.com>
Link: https://patch.msgid.link/20250306145150.1757263-3-kuba@kernel.org


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent c1aacad3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1221,7 +1221,7 @@ void fbnic_aggregate_ring_rx_counters(struct fbnic_net *fbn,
	fbn->rx_stats.rx.csum_complete += stats->rx.csum_complete;
	fbn->rx_stats.rx.csum_none += stats->rx.csum_none;
	/* Remember to add new stats here */
	BUILD_BUG_ON(sizeof(fbn->tx_stats.rx) / 8 != 3);
	BUILD_BUG_ON(sizeof(fbn->rx_stats.rx) / 8 != 3);
}

void fbnic_aggregate_ring_tx_counters(struct fbnic_net *fbn,