diff options
author | 2012-03-05 17:49:34 +0800 | |
---|---|---|
committer | 2012-03-13 09:29:55 -0700 | |
commit | b008df60c6369ba0290fa7daa177375407a12e07 (patch) | |
tree | 05a59c4a4d8d624b18ad0844949841f36b241c17 /drivers/net/xen-netfront.c | |
parent | xHCI: store ring's last segment and segment numbers (diff) | |
download | linux-dev-b008df60c6369ba0290fa7daa177375407a12e07.tar.xz linux-dev-b008df60c6369ba0290fa7daa177375407a12e07.zip |
xHCI: count free TRBs on transfer ring
In the past, the room_on_ring() check was implemented by walking all over
the ring, which is wasteful and complicated.
Count the number of free TRBs instead. The free TRBs number should be
updated when enqueue/dequeue pointer is updated, or upon the completion
of a set dequeue pointer command.
Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Tested-by: Paul Zimmerman <Paul.Zimmerman@synopsys.com>
Diffstat (limited to 'drivers/net/xen-netfront.c')
0 files changed, 0 insertions, 0 deletions