]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ixgbe: Do no clear Tx status bits since eop_desc provides enough info
authorAlexander Duyck <alexander.h.duyck@intel.com>
Wed, 8 Feb 2012 07:49:23 +0000 (07:49 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 14:58:04 +0000 (22:58 +0800)
commit2c0df0a6f09d3c48dc240edea65e33b392179941
tree2136d93c905822af71ef929ffb3972cc18e3e34b
parentd9e007fb980a081ee4a38f1817d5926b8c44fde8
ixgbe: Do no clear Tx status bits since eop_desc provides enough info

There isn't any need to clear the status bits in the descriptors due to the
fact that the eop_desc provides enough information for us to know
that we have cleaned to the last packet that the software has put on the
ring.  The status bits are cleared as a part of putting the frame on the
ring so as long as we do not read the descriptor bit prior to reading the
value eop_desc we should be able to guarantee that we will not clean beyond
the end of the current data stream.

(cherry picked from commit 7f83a9e6292b49d1540f82f295ac8710ba562c5f)
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe_main.c