82563/i350: Fixes off-by-one issue
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 7 May 2014 23:25:05 +0000 (16:25 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 7 May 2014 23:32:14 +0000 (16:32 -0700)
commit1795dce1b1e644982fe31d801740a5bb60a92fed
tree3216ea8e764d6eede419132bab62237606fc3ead
parent223239de8e30c4ee2d11171a7b37dacb33a0fd6f
82563/i350: Fixes off-by-one issue

We were seeing TX underruns, which made me look closer.  I don't think
the -1s would work with the NEXT_RING macro, which expects the full
length of the ring.  Perhaps 9port had different ring macros?  Or they
wanted to skip that last entry for some reason...

Either way, we don't get the underruns with the removal of the -1s.
kern/drivers/net/ether82563.c