File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -807,8 +807,9 @@ def vdev_vring_show(vd_vring: t.List[Object], key: str) -> None:
807807 for vring in vd_vring :
808808 log .debug ("=> struct vring_virtqueue %x" % (vring .address_ ))
809809 vring_info = get_vring_info (vring )
810+ nr_pending_req = vring_info .avail_idx - vring_info .used_idx
810811 print (
811- "%10s.%-12s %16x %16s %16s %16s %5d %5d:%5d:%5d:%5d %3c"
812+ "%10s.%-12s %16x %16s %16s %16s %5d %5d:%5d:%5d:%5d %3c %5d "
812813 % (
813814 key ,
814815 vring_info .vq_name ,
@@ -822,6 +823,7 @@ def vdev_vring_show(vd_vring: t.List[Object], key: str) -> None:
822823 vring_info .avail_idx ,
823824 vring_info .used_idx ,
824825 vring_info .event ,
826+ nr_pending_req ,
825827 )
826828 )
827829
@@ -844,7 +846,7 @@ def vrings_show(
844846
845847 if header :
846848 print (
847- "{:>10}.{:12} {:16} {:16} {:16} {:16} {:5} {:23} {:6}" .format (
849+ "{:>10}.{:12} {:16} {:16} {:16} {:16} {:5} {:23} {:6} {:5} " .format (
848850 "DEV" ,
849851 "VQ NAME" ,
850852 "VRING_VIRTQUEUE" ,
@@ -854,6 +856,7 @@ def vrings_show(
854856 "N_ENT" ,
855857 "L_USD:A_SHD:A_IDX:U_IDX" ,
856858 "EVENT" ,
859+ "NR_PENDING_REQ" ,
857860 )
858861 )
859862
You can’t perform that action at this time.
0 commit comments