sfc: Correct reporting and validation of TX interrupt coalescing
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 5 Sep 2011 07:42:25 +0000 (07:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Sep 2011 20:50:36 +0000 (16:50 -0400)
commita0c4faf5484b1fe38952d5b975f19e9f4b8f0f2b
tree5f39c2e01c48dc795cdccfb63abb3f96702dadef
parentb548f97684412b0969dc148e1706eb047151e356
sfc: Correct reporting and validation of TX interrupt coalescing

The reported TX IRQ moderation is generated in a completely crazy way.
Make it simple and correct.

When channels are shared between RX and TX, TX IRQ moderation must be
the same as RX IRQ moderation, but must be specified as 0!  Allow it
to be either specified as the same, or left at its previous value
in which case it will be quietly overridden.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/efx.h
drivers/net/ethernet/sfc/ethtool.c