How to perform real-time rate limiting per QP?

As is shown in https://community.mellanox.com/s/article/raw-ethernet-programming--packet-pacing---code-example, the application can perform rate limiting per QP. However, network manager may desire to perform real-time rate limiting, i.e., the application starts without rate limiting, then manager sets a QP within the limit of 5Gbps so that this QP can send packets with the rate no more than 5Gbps. I don’t know how to do that?

Hello Tim,

Thank you for posting your question on the Mellanox Community.

We have several tools for performing rate limiting on Mellanox hardware.

For rate limiting using the Mellanox OFED please see the following article:

https://docs.mellanox.com/pages/viewpage.action?pageId=32413183

Mellanox switches also have tools for QOS and rate limiting. The following provides information on the topic :

https://community.mellanox.com/s/article/howto-configure-qos-on-mellanox-switches--switchx-x

For rate limiting on a linux level there is also the option of using the tc tool. Here is the man page:

https://man7.org/linux/man-pages/man8/tc.8.html

I have not found any capability in network manager for rate limiting. For support related to network manager please contact Redhat.

If you have further questions or need further support please contact support@mellanox.com with a valid support contract and we can discuss the issue further.

Thanks and regards,

~Mellanox Technical Support