diff options
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be_ethtool.c')
| -rw-r--r-- | drivers/net/ethernet/emulex/benet/be_ethtool.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_ethtool.c b/drivers/net/ethernet/emulex/benet/be_ethtool.c index 2835dee5dc39..b2476dbfd103 100644 --- a/drivers/net/ethernet/emulex/benet/be_ethtool.c +++ b/drivers/net/ethernet/emulex/benet/be_ethtool.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (C) 2005 - 2014 Emulex | 2 | * Copyright (C) 2005 - 2015 Emulex |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| 5 | * This program is free software; you can redistribute it and/or | 5 | * This program is free software; you can redistribute it and/or |
| @@ -123,7 +123,6 @@ static const struct be_ethtool_stat et_stats[] = { | |||
| 123 | {DRVSTAT_INFO(dma_map_errors)}, | 123 | {DRVSTAT_INFO(dma_map_errors)}, |
| 124 | /* Number of packets dropped due to random early drop function */ | 124 | /* Number of packets dropped due to random early drop function */ |
| 125 | {DRVSTAT_INFO(eth_red_drops)}, | 125 | {DRVSTAT_INFO(eth_red_drops)}, |
| 126 | {DRVSTAT_INFO(be_on_die_temperature)}, | ||
| 127 | {DRVSTAT_INFO(rx_roce_bytes_lsd)}, | 126 | {DRVSTAT_INFO(rx_roce_bytes_lsd)}, |
| 128 | {DRVSTAT_INFO(rx_roce_bytes_msd)}, | 127 | {DRVSTAT_INFO(rx_roce_bytes_msd)}, |
| 129 | {DRVSTAT_INFO(rx_roce_frames)}, | 128 | {DRVSTAT_INFO(rx_roce_frames)}, |
| @@ -368,6 +367,14 @@ static int be_set_coalesce(struct net_device *netdev, | |||
| 368 | aic++; | 367 | aic++; |
| 369 | } | 368 | } |
| 370 | 369 | ||
| 370 | /* For Skyhawk, the EQD setting happens via EQ_DB when AIC is enabled. | ||
| 371 | * When AIC is disabled, persistently force set EQD value via the | ||
| 372 | * FW cmd, so that we don't have to calculate the delay multiplier | ||
| 373 | * encode value each time EQ_DB is rung | ||
| 374 | */ | ||
| 375 | if (!et->use_adaptive_rx_coalesce && skyhawk_chip(adapter)) | ||
| 376 | be_eqd_update(adapter, true); | ||
| 377 | |||
| 371 | return 0; | 378 | return 0; |
| 372 | } | 379 | } |
| 373 | 380 | ||
