net: sh_eth: add CONFIG_SH_ETH_NUM_RXDESC option
Subsystems (6)
Shimoda, Yoshihiro
reviewerPATCH 4/5 net: sh_eth: add CONFIG_SH_ETH_NUM_RXDESC option
This patch allows you to configure the number of RX descriptors.
Signed-off-by Yoshihiro Shimoda <[email protected]>
--- drivers/net/ethernet/renesas/Kconfig | 8 ++++++++ drivers/net/ethernet/renesas/sh_eth.h | 2 +- 2 files changed, 9 insertions(+), 1 deletions(-)
drivers/net/ethernet/renesas/Kconfig +8 -0
@@ -17,3 +17,11 @@ config SH_ETH Renesas SuperH Ethernet device driver. This driver supporting CPUs are: - SH7710, SH7712, SH7763, SH7619, SH7724, and SH7757. + +config SH_ETH_NUM_RXDESC + int "Number of RX descriptor" + depends on SH_ETH + default "64" + ---help--- + If you want to need more RX descriptors, you can configure + the number of RX descriptors by this option.
drivers/net/ethernet/renesas/sh_eth.h +1 -1
@@ -26,7 +26,7 @@#define CARDNAME "sh-eth"#define TX_TIMEOUT (5*HZ)#define TX_RING_SIZE 64/* Tx ring size */ -#define RX_RING_SIZE 64/* Rx ring size */ +#define RX_RING_SIZE CONFIG_SH_ETH_NUM_RXDESC/* Rx ring size */ #define ETHERSMALL 60#define PKT_BUF_SZ 1538#define SH_ETH_TSU_TIMEOUT_MS 500
Signature · 1 line
1.7.1
David Miller
maintainerFrom: "Shimoda, Yoshihiro" <[email protected]>
Date: Fri, 16 Mar 2012 17:46:16 +0900
Quoted 3 lines
This patch allows you to configure the number of RX descriptors.
Signed-off-by Yoshihiro Shimoda <[email protected]>
Never decide such things at compile time, use ethtool at runtime for this.
Shimoda, Yoshihiro
reviewerQuoted 10 lines · David Miller
From: "Shimoda, Yoshihiro" <[email protected]>
Date: Fri, 16 Mar 2012 17:46:16 +0900Quoted 3 lines
This patch allows you to configure the number of RX descriptors.
Signed-off-by Yoshihiro Shimoda <[email protected]>Never decide such things at compile time, use ethtool at runtime for this.
Thank you for the review. I will fix this.
Best regards,
Yoshihiro Shimoda