From: Alexander Duyck Date: Wed, 17 Nov 2010 03:26:49 +0000 (-0800) Subject: ixgbe: drop ring->head, make ring->tail a pointer instead of offset X-Git-Tag: v2.6.38-rc1~476^2~547^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84ea2591e4a24775c2735511a1cc3cf88edd249d;p=pandora-kernel.git 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 Tested-by: Ross Brattain Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed