]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Move ring features into an enum, allowing easier future maintenance
authorShannon Nelson <shannon.nelson@intel.com>
Wed, 25 Feb 2009 00:36:38 +0000 (16:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Feb 2009 00:36:38 +0000 (16:36 -0800)
commit3d3cabc4eac8ed5a3a12f54de86c914950e09a34
treef9112dea897b430e843dc319866984935e2d5000
parentc5fbea8a540af10e18f0bce079faa5157d81ce22
ixgbe: Move ring features into an enum, allowing easier future maintenance

From: Shannon Nelson <shannon.nelson@intel.com>

The ring_feature member of ixgbe_adapter is statically allocated based on
the supported features of the device.  When a new feature is added, we need
to manually update the static allocation.  This patch makes the feature
list an enum, eliminating the need for multiple updates to the code when
adding a new feature.

Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe.h