ixgbe: Pass rx_ring directly in ixgbe_configure_srrctl()
authorYi Zou <yi.zou@intel.com>
Thu, 6 Aug 2009 13:05:23 +0000 (13:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Aug 2009 04:45:35 +0000 (21:45 -0700)
commita6616b42fbc39c1ccc2373996f1441ce7707ea93
tree1f4092de64ad7afab2d44b1f5864a74f6abdb92e
parent876bfd4d0f18cd1f698249870c7e7fb944de1c26
ixgbe: Pass rx_ring directly in ixgbe_configure_srrctl()

Instead of passing the register index of the corresponding rx_ring and find
the way back to get to corresponding rx_ring in ixgbe_configure_srrctl(),
simplify the function ixgbe_configure_srrctl() by passing the rx_ring into
it. Then the register index for that rx_ring is already available from
rx_ring->reg_idx.

Signed-off-by: Yi Zou <yi.zou@intel.com>
Acked-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_main.c