amd-xgbe: Allow rx-frames coalescing to be changed anytime
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Thu, 9 Apr 2015 17:11:51 +0000 (12:11 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Apr 2015 21:35:37 +0000 (17:35 -0400)
commit8dee19e619bb6d4aefdf0ce5260099fec08601a3
tree7d60b8bc7d40239d3b061ba1bd1ad4dce8eb802f
parent1e53d5bb8878dcbdbffde334ab89b1f57778b48c
amd-xgbe: Allow rx-frames coalescing to be changed anytime

Currently the device must be down in order to update the rx-frames
coalescing setting because the interrupt indicator is set in the
descriptor data during initialization. Allow this setting to be changed
while the device is up by moving the interrupt decision into the
descriptor reset function and base the decision off of the supplied
descriptor index value.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c
drivers/net/ethernet/amd/xgbe/xgbe.h