ionic: reverse an interrupt coalesce calculation
Fix the initial interrupt coalesce usec-to-hw setting
to actually be usec-to-hw.
Fixes: 780eded34c ("ionic: report users coalesce request")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
5c28f213ef
commit
ff7ebed945
@@ -1686,7 +1686,7 @@ static struct ionic_lif *ionic_lif_alloc(struct ionic *ionic, unsigned int index
|
|||||||
|
|
||||||
/* Convert the default coalesce value to actual hw resolution */
|
/* Convert the default coalesce value to actual hw resolution */
|
||||||
lif->rx_coalesce_usecs = IONIC_ITR_COAL_USEC_DEFAULT;
|
lif->rx_coalesce_usecs = IONIC_ITR_COAL_USEC_DEFAULT;
|
||||||
lif->rx_coalesce_hw = ionic_coal_hw_to_usec(lif->ionic,
|
lif->rx_coalesce_hw = ionic_coal_usec_to_hw(lif->ionic,
|
||||||
lif->rx_coalesce_usecs);
|
lif->rx_coalesce_usecs);
|
||||||
|
|
||||||
snprintf(lif->name, sizeof(lif->name), "lif%u", index);
|
snprintf(lif->name, sizeof(lif->name), "lif%u", index);
|
||||||
|
|||||||
Reference in New Issue
Block a user