From 8802b57d9efbc264ae4a9f07bee1253eadbc3ebd Mon Sep 17 00:00:00 2001 From: Shadi Ammouri Date: Mon, 2 Dec 2024 12:12:56 +0200 Subject: [PATCH] pyverbs: Add 12X to width_to_str mapping array Add missing width to the width_to_str mapping array. Reviewed-by: Daniel Kinsbursky Reviewed-by: Firas Jahjah Signed-off-by: Shadi Ammouri --- pyverbs/device.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyverbs/device.pyx b/pyverbs/device.pyx index 863c2d379..6c7ea8891 100644 --- a/pyverbs/device.pyx +++ b/pyverbs/device.pyx @@ -1169,7 +1169,7 @@ def phys_state_to_str(phys): def width_to_str(width): - l = {1: '1X', 2: '4X', 4: '8X', 16: '2X'} + l = {1: '1X', 2: '4X', 4: '8X', 8: '12X', 16: '2X'} try: return '{s} ({n})'.format(s=l[width], n=width) except KeyError: