You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on Bluefield 2 DPU devices and have received scripts that can access low-level statistics. I don't know how much of the details are neccesary but in brief what the script does is open a file descriptor to rshim.
self.rshim_fd = os.open(filename, os.O_RDWR)
with filename /dev/rshim0
and then the script tries to
Thanks for coming back to me with this.
Indeed using the provided RSHIM_IOC_READ changes the error to TypeError: an integer is required where I believe the problem is in the buf since ioctl() expects an integer there. I'm also not sure what should I use as the size paramater.
The address that comes in is 1360 which gets packed into bytearray(b'P\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00') when using size of 16. I've tried other sizes between 1-16 as well but they all give the same error.
Thanks again and I'm grateful for any further help.
Best regards
Dear team,
I'm working on Bluefield 2 DPU devices and have received scripts that can access low-level statistics. I don't know how much of the details are neccesary but in brief what the script does is open a file descriptor to rshim.
with filename /dev/rshim0
and then the script tries to
which results in
IOError: [Errno 25] Inappropriate ioctl for device
I've looped through all the others possible values instead of 1 and the error is the same.
The version:
If you need any additional info about what the script does we can go deeper into it. I would be grateful for any help.
Best regards
The text was updated successfully, but these errors were encountered: