tg3: Refine TSO and MSI discovery
authorMatt Carlson <mcarlson@broadcom.com>
Fri, 13 Nov 2009 13:03:37 +0000 (13:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Nov 2009 06:14:39 +0000 (22:14 -0800)
commit507399f18ea5810de42f0ea228c14305a8f67512
treecbb2d9dad6f78a08d40276137256368c5f416ab9
parentf66a29b03a2637ff052f2b8a81a5417fa44e228b
tg3: Refine TSO and MSI discovery

This patch consolidates the TSO capability discovery code into its own
code block.  The code that decides whether or not to allow TSO is then
cleaned up.  Finally, the patch consolidates all MSI and MSIX
capability code into a single code block.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c