Skip to content

Commit

Permalink
pyverbs: Add 12X to width_to_str mapping array
Browse files Browse the repository at this point in the history
Add missing width to the width_to_str mapping array.

Reviewed-by: Daniel Kinsbursky <dkinsb@amazon.com>
Reviewed-by: Firas Jahjah <firasj@amazon.com>
Signed-off-by: Shadi Ammouri <sammouri@amazon.com>
  • Loading branch information
ammourishadi authored and mrgolin committed Dec 2, 2024
1 parent be21c2a commit 8802b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyverbs/device.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8802b57

Please # to comment.