I wanted to enable decompression and compression of wqes , by enabling the flag rx_cqe_compress from ethtool using ethtool --set-priv-flags enp5s0f1np1 rx_cqe_compress on
I have enabled rx_cqe_compress flag however, when I am sending packets the decompression is not performed.
Can someone provide the detail how compression and decompression of the wqes work.
We will need to know a bit more info to be able to understand and help with your question
What adapter are you using connectX-4,5,6,7?
What is the OS you are using?
What MOFED version do you have installed?
The RX CQE Compression feature in NVIDIA network adapters allows the network adapter to compress the size of the received packet completion queue entry (CQE) and transmit it to the CPU. This reduces the amount of data that needs to be transferred from the adapter to the CPU, thereby reducing the amount of data that needs to be processed by the CPU.
When a packet is received, the network adapter generates a CQE that contains information about the packet, such as the packet length, packet type, and the location of the data buffer. The RX CQE Compression feature compresses this CQE and sends it to the CPU.
When the CPU receives the compressed CQE, it decompresses it and processes it in the same way as a normal CQE. The decompression is performed by the network driver, which uses the same compression algorithm as the network adapter.
In order to use the RX CQE Compression feature, both the network adapter and the network driver must support it. Additionally, the ethtool command should be used to enable the RX CQE Compression feature on the network adapter.
As you have already enabled the RX CQE Compression feature using the ethtool command, and the driver is the latest, and packets are still not being decompressed, there may be other issues that could be causing the problem. Here are a few things you can try:
Verify that the RX CQE Compression feature is actually enabled on the network adapter by running the “ethtool -k ” command and checking if the “rx_cqe_compress” flag is listed as “on”.
Check if there are any other conflicting settings that could be affecting RX CQE Compression. For example, some network drivers may have other settings that override the RX CQE Compression setting. You can try disabling these settings to see if it resolves the issue.
Check if there are any network configuration issues that could be causing the problem. For example, there could be issues with the switch or router configuration that are preventing the packets from being properly transmitted and received.
Finally, if none of the above steps work, please open a case with NVIDIA Support so this can be investigated.