projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1aacad
)
eth: fbnic: fix typo in compile assert
author
Jakub Kicinski
<kuba@kernel.org>
Thu, 6 Mar 2025 14:51:49 +0000
(06:51 -0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Sat, 8 Mar 2025 03:37:37 +0000
(19:37 -0800)
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: Joe Damato <jdamato@fastly.com>
Link:
https://patch.msgid.link/20250306145150.1757263-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
b/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
index 2d2d41c6891b6c670d9f7e98e9f7cacad2eb89ac..ac11389a764cefffbccee39069a7b6dd447d9ec9 100644
(file)
--- a/
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
+++ b/
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
@@
-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->
t
x_stats.rx) / 8 != 3);
+ BUILD_BUG_ON(sizeof(fbn->
r
x_stats.rx) / 8 != 3);
}
void fbnic_aggregate_ring_tx_counters(struct fbnic_net *fbn,