staging: octeon-ethernet: eliminate USE_RED define
authorAaro Koskinen <aaro.koskinen@iki.fi>
Sat, 4 Apr 2015 19:51:18 +0000 (22:51 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Apr 2015 15:06:07 +0000 (17:06 +0200)
We have RED always enabled, so eliminate the #define.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon/ethernet-defines.h
drivers/staging/octeon/ethernet.c

index b39bb3ddab1fafdbfdef0e24dad46223126e4d80..58ff9ba80d6989e8fb350bd4e47dc02c81ce5026 100644 (file)
@@ -52,8 +52,6 @@
 #define REUSE_SKBUFFS_WITHOUT_FREE  1
 #endif
 
-/* Enable Random Early Dropping under load */
-#define USE_RED                     1
 #define USE_ASYNC_IOBDMA            (CONFIG_CAVIUM_OCTEON_CVMSEG_SIZE > 0)
 
 /*
index b662e2ac625f7d52d31dca9adba7e5478fea0de0..afcdce4bce1cdc0003385ae6d35ef2aba94349e7 100644 (file)
@@ -180,10 +180,7 @@ static void cvm_oct_configure_common_hw(void)
        }
 #endif
 
-       if (USE_RED)
-               cvmx_helper_setup_red(num_packet_buffers / 4,
-                                     num_packet_buffers / 8);
-
+       cvmx_helper_setup_red(num_packet_buffers / 4, num_packet_buffers / 8);
 }
 
 /**