diff options
-rw-r--r-- | drivers/net/ethernet/sfc/ethtool.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/sfc/ethtool.c b/drivers/net/ethernet/sfc/ethtool.c index bc4643af6dd1..6de2715dae18 100644 --- a/drivers/net/ethernet/sfc/ethtool.c +++ b/drivers/net/ethernet/sfc/ethtool.c | |||
@@ -628,12 +628,12 @@ static int efx_ethtool_set_coalesce(struct net_device *net_dev, | |||
628 | unsigned tx_usecs, rx_usecs, adaptive; | 628 | unsigned tx_usecs, rx_usecs, adaptive; |
629 | 629 | ||
630 | if (coalesce->use_adaptive_tx_coalesce) | 630 | if (coalesce->use_adaptive_tx_coalesce) |
631 | return -EOPNOTSUPP; | 631 | return -EINVAL; |
632 | 632 | ||
633 | if (coalesce->rx_coalesce_usecs || coalesce->tx_coalesce_usecs) { | 633 | if (coalesce->rx_coalesce_usecs || coalesce->tx_coalesce_usecs) { |
634 | netif_err(efx, drv, efx->net_dev, "invalid coalescing setting. " | 634 | netif_err(efx, drv, efx->net_dev, "invalid coalescing setting. " |
635 | "Only rx/tx_coalesce_usecs_irq are supported\n"); | 635 | "Only rx/tx_coalesce_usecs_irq are supported\n"); |
636 | return -EOPNOTSUPP; | 636 | return -EINVAL; |
637 | } | 637 | } |
638 | 638 | ||
639 | rx_usecs = coalesce->rx_coalesce_usecs_irq; | 639 | rx_usecs = coalesce->rx_coalesce_usecs_irq; |
@@ -647,7 +647,7 @@ static int efx_ethtool_set_coalesce(struct net_device *net_dev, | |||
647 | tx_usecs) { | 647 | tx_usecs) { |
648 | netif_err(efx, drv, efx->net_dev, "Channel is shared. " | 648 | netif_err(efx, drv, efx->net_dev, "Channel is shared. " |
649 | "Only RX coalescing may be set\n"); | 649 | "Only RX coalescing may be set\n"); |
650 | return -EOPNOTSUPP; | 650 | return -EINVAL; |
651 | } | 651 | } |
652 | } | 652 | } |
653 | 653 | ||