forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/net/ethernet/broadcom/bnx2x/bnx2x_init.h
....@@ -296,7 +296,6 @@
296296 * possible, the driver should only write the valid vnics into the internal
297297 * ram according to the appropriate port mode.
298298 */
299
-#define BITS_TO_BYTES(x) ((x)/8)
300299
301300 /* CMNG constants, as derived from system spec calculations */
302301
....@@ -449,7 +448,7 @@
449448 ccd[cos] =
450449 (u32)input_data->cos_min_rate[cos] * 100 *
451450 (T_FAIR_COEF / (8 * 100 * cosWeightSum));
452
- if (ccd[cos] < pdata->fair_vars.fair_threshold
451
+ if (ccd[cos] < pdata->fair_vars.fair_threshold
453452 + MIN_ABOVE_THRESH) {
454453 ccd[cos] =
455454 pdata->fair_vars.fair_threshold +