How to configure Hierarchical QoS offloading in connectX-6 NIC?

As it is stated in the DPDK website, offloading TX scheduling to hardware is supported.

https://doc.dpdk.org/guides/nics/mlx5.html#mlx5-offloads-support

I have a simple DPDK application for TX traffic scheduling (shaping) which for now works in software. I would like to use the hardware offloading to perform this function. Any help is appreciated.

Could you shed more light on exactly what need to be offloaded/configured? Is this something that covered bo QoS testing - https://doc.dpdk.org/dts/test_plans/qos_api_test_plan.html?