switch (state) { case ETHTOOL_ID_ON:
mode = EFX_LED_ON; break; case ETHTOOL_ID_OFF:
mode = EFX_LED_OFF; break; case ETHTOOL_ID_INACTIVE:
mode = EFX_LED_DEFAULT; break; case ETHTOOL_ID_ACTIVE: return 1; /* cycle on/off once per second */
}
/* * Each channel has a single IRQ and moderation timer, started by any * completion (or other event). Unless the module parameter * separate_tx_channels is set, IRQs and moderation are therefore * shared between RX and TX completions. In this case, when RX IRQ * moderation is explicitly changed then TX IRQ moderation is * automatically changed too, but otherwise we fail if the two values * are requested to be different. * * The hardware does not support a limit on the number of completions * before an IRQ, so we do not use the max_frames fields. We should * report and require that max_frames == (usecs != 0), but this would * invalidate existing user documentation. * * The hardware does not have distinct settings for interrupt * moderation while the previous IRQ is being handled, so we should * not use the 'irq' fields. However, an earlier developer * misunderstood the meaning of the 'irq' fields and the driver did * not support the standard fields. To avoid invalidating existing * user documentation, we report and accept changes through either the * standard or 'irq' fields. If both are changed at the same time, we * prefer the standard field. * * We implement adaptive IRQ moderation, but use a different algorithm * from that assumed in the definition of struct ethtool_coalesce. * Therefore we do not use any of the adaptive moderation parameters * in it.
*/
/* If channels are shared, TX IRQ moderation can be quietly * overridden unless it is changed from its old value.
*/
rx_may_override_tx = (coalesce->tx_coalesce_usecs == tx_usecs &&
coalesce->tx_coalesce_usecs_irq == tx_usecs); if (coalesce->tx_coalesce_usecs != tx_usecs)
tx_usecs = coalesce->tx_coalesce_usecs; else
tx_usecs = coalesce->tx_coalesce_usecs_irq;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.