diff options
author | Bert Kenward <bkenward@solarflare.com> | 2016-08-11 13:02:09 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-12 20:42:20 -0700 |
commit | 539de7c5240a257c9028b3063873170a6867b159 (patch) | |
tree | b75e33f6ee2a9fbada04fa91aa465db6b5c9aeeb /drivers/net/ethernet/sfc/workarounds.h | |
parent | sfc: use new performance based event queue init (diff) | |
download | linux-dev-539de7c5240a257c9028b3063873170a6867b159.tar.xz linux-dev-539de7c5240a257c9028b3063873170a6867b159.zip |
sfc: set interrupt moderation via MCDI
SFN8000-series NICs require a new method of setting interrupt moderation,
via MCDI. This is indicated by a workaround flag. This new MCDI command
takes an explicit time value rather than a number of ticks. It therefore
makes sense to also store the moderation values in terms of time, since
that is what the ethtool interface is interested in.
Signed-off-by: Bert Kenward <bkenward@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/workarounds.h')
-rw-r--r-- | drivers/net/ethernet/sfc/workarounds.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/workarounds.h b/drivers/net/ethernet/sfc/workarounds.h index 2310b75d4ec2..351cd14cb9f9 100644 --- a/drivers/net/ethernet/sfc/workarounds.h +++ b/drivers/net/ethernet/sfc/workarounds.h @@ -50,4 +50,8 @@ #define EFX_WORKAROUND_35388(efx) \ (efx_nic_rev(efx) == EFX_REV_HUNT_A0 && EFX_EF10_WORKAROUND_35388(efx)) +/* Moderation timer access must go through MCDI */ +#define EFX_EF10_WORKAROUND_61265(efx) \ + (((struct efx_ef10_nic_data *)efx->nic_data)->workaround_61265) + #endif /* EFX_WORKAROUNDS_H */ |