From: Jason Wang Date: Thu, 16 Jan 2014 06:45:24 +0000 (+0800) Subject: virtio-net: drop rq->max and rq->num X-Git-Tag: v3.14-rc1~94^2~118 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be121f46affce8a2ba284ef0388a8ff6ff85ec1b;p=pandora-kernel.git virtio-net: drop rq->max and rq->num It looks like there's no need for those two fields: - Unless there's a failure for the first refill try, rq->max should be always equal to the vring size. - rq->num is only used to determine the condition that we need to do the refill, we could check vq->num_free instead. - rq->num was required to be increased or decreased explicitly after each get/put which results a bad API. So this patch removes them both to make the code simpler. Cc: Rusty Russell Cc: Michael S. Tsirkin Signed-off-by: Jason Wang Acked-by: Rusty Russell Acked-by: Michael S. Tsirkin Signed-off-by: David S. Miller --- Reading git-diff-tree failed