aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt2sas/mpi/mpi2_raid.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <[email protected]>2012-10-16 23:56:14 +1030
committerRusty Russell <[email protected]>2012-12-18 15:20:32 +1030
commit6ee57bcc1e61d39c0579438055bc84087210f9b6 (patch)
tree2cae790fe378aa4be4419e40ae13f2a4e4b4d8c5 /drivers/scsi/mpt2sas/mpi/mpi2_raid.h
parent06ca287dbac9cc19d04ac2901b8c4882c03795ff (diff)
virtio-net: correct capacity math on ring full
Capacity math on ring full is wrong: we are looking at num_sg but that might be optimistic because of indirect buffer use. The implementation also penalizes fast path with extra memory accesses for the benefit of ring full condition handling which is slow path. It's easy to query ring capacity so let's do just that. This change also makes it easier to move vnet header for tx around as follow-up patch does. Signed-off-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Rusty Russell <[email protected]> Acked-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions