diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2010-11-17 04:26:49 +0100 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2010-11-17 04:26:49 +0100 |
commit | 84ea2591e4a24775c2735511a1cc3cf88edd249d (patch) | |
tree | f2189b6c1a5437639291eab40a34034e6f7f6c8f /drivers/net/ixgbe/ixgbe_ethtool.c | |
parent | ixgbe: cleanup ixgbe_alloc_rx_buffers (diff) | |
download | linux-84ea2591e4a24775c2735511a1cc3cf88edd249d.tar.xz linux-84ea2591e4a24775c2735511a1cc3cf88edd249d.zip |
ixgbe: drop ring->head, make ring->tail a pointer instead of offset
This change drops ring->head since it is not used in any hot-path and can
easily be determined using IXGBE_[RT]DH(ring->reg_idx).
It also changes ring->tail into a true pointer so we can avoid unnecessary
pointer math to find the location of the tail.
In addition I also dropped the setting of head and tail in
ixgbe_clean_[rx|tx]_ring. The only location that should be setting the head
and tail values is ixgbe_configure_[rx|tx]_ring and that is only while the
queue is disabled.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_ethtool.c')
0 files changed, 0 insertions, 0 deletions