ixgbe: make device_caps() generic
authorEmil Tantilov <emil.s.tantilov@intel.com>
Thu, 31 Mar 2011 09:36:18 +0000 (09:36 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 14 Apr 2011 02:26:06 +0000 (19:26 -0700)
commitb776d1043510c60f59220eb5e58b524f5a7f0e52
treebbc53cc64c1c1d0a94d559259cf26ca89f32bf49
parenta59e8a1a72806057084adc2d321fc2a7cbce9579
ixgbe: make device_caps() generic

x540 has the same device capability word in the EEPROM as 82599.
This patch renames ixgbe_get_device_caps_82599 to
ixgbe_get_device_caps_generic, moves it to ixgbe_common.h and
sets up the function pointer for x540.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Evan Swanson <evan.swanson@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ixgbe/ixgbe_82599.c
drivers/net/ixgbe/ixgbe_common.c
drivers/net/ixgbe/ixgbe_common.h
drivers/net/ixgbe/ixgbe_x540.c