Fixed genet for SUSE 16.0.

This commit is contained in:
Florian Pose 2026-03-26 17:26:45 +01:00
parent cf19168844
commit bf706b737d
1 changed files with 4 additions and 0 deletions

View File

@ -2459,7 +2459,11 @@ static int bcmgenet_rx_poll(struct napi_struct *napi, int budget)
if (ring->dim.use_dim) {
dim_update_sample(ring->dim.event_ctr, ring->dim.packets,
ring->dim.bytes, &dim_sample);
#ifdef CONFIG_SUSE_KERNEL
net_dim(&ring->dim.dim, &dim_sample);
#else
net_dim(&ring->dim.dim, dim_sample);
#endif
}
return work_done;