summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2015-04-04 22:51:18 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-04-30 17:06:07 +0200
commitcccdb27755a3ae79a5fb98257c93d4ea80efe3f8 (patch)
treecb2f008dd550e87b8b8da4613bc01630b9c3160f /drivers
parent3a990f390ec093293c03e9542f2583c5e4c53684 (diff)
staging: octeon-ethernet: eliminate USE_RED define
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/octeon/ethernet-defines.h2
-rw-r--r--drivers/staging/octeon/ethernet.c5
2 files changed, 1 insertions, 6 deletions
diff --git a/drivers/staging/octeon/ethernet-defines.h b/drivers/staging/octeon/ethernet-defines.h
index b39bb3ddab1f..58ff9ba80d69 100644
--- a/drivers/staging/octeon/ethernet-defines.h
+++ b/drivers/staging/octeon/ethernet-defines.h
@@ -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)
/*
diff --git a/drivers/staging/octeon/ethernet.c b/drivers/staging/octeon/ethernet.c
index b662e2ac625f..afcdce4bce1c 100644
--- a/drivers/staging/octeon/ethernet.c
+++ b/drivers/staging/octeon/ethernet.c
@@ -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);
}
/**