mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 02:48:37 +08:00
drivers/net/igc: make Interrupt Throttle configurable
make Interrupt Throttle configurable for igc Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
This commit is contained in:
parent
bf4eadf735
commit
5e48f2a3d8
2 changed files with 8 additions and 5 deletions
|
@ -812,6 +812,13 @@ config NET_IGC_RXSPARE
|
|||
int "Intel IGC spare RX buffers"
|
||||
default 8
|
||||
|
||||
config NET_IGC_INT_INTERVAL
|
||||
int "Intel IGC interrupt interval"
|
||||
default 100
|
||||
range 1 8191
|
||||
---help---
|
||||
Minimum Inter-interrupt Interval in 1 us increments.
|
||||
|
||||
endif # NET_IGC
|
||||
|
||||
endif # NETDEVICES
|
||||
|
|
|
@ -91,10 +91,6 @@
|
|||
#define IGC_IO_BAR 2
|
||||
#define IGC_MSIX_BAR 3
|
||||
|
||||
/* Minimum Inter-interrupt Interval in 1 us increments */
|
||||
|
||||
#define IGC_INTERRUPT_INTERVAL 100
|
||||
|
||||
/* For MSI-X we allocate all interrupts to MSI-X vector 0 */
|
||||
|
||||
#define IGC_GPIE_MSIX_SINGLE (IGC_GPIE_NSICR | IGC_GPIE_EIAME | \
|
||||
|
@ -1185,7 +1181,7 @@ static int igc_initialize(FAR struct igc_driver_s *priv)
|
|||
|
||||
/* Configure Interrupt Throttle */
|
||||
|
||||
igc_putreg_mem(priv, IGC_EITR0, (IGC_INTERRUPT_INTERVAL << 2));
|
||||
igc_putreg_mem(priv, IGC_EITR0, (CONFIG_NET_IGC_INT_INTERVAL << 2));
|
||||
|
||||
/* Get MAC if valid */
|
||||
|
||||
|
|
Loading…
Reference in a new issue