How to check if hardware NAT (flow offloading) is enabled?

I want to report that I have seen a noticable difference when enabling hadware offload support. However, I am unable to confirm which part of the system is doing offloading. Is anyone able to point me to something where I can check if the offloading is working? ring buffers? even packet counters would be neat.

1 Like

It's the switch chip itself. There was a discussion on how to see/access the various registers - not sure if this can be done from userspace (or if it's possible at all). Nonetheless, here's the link to that thread, including links to the relevant guides: No HW_OFFLOAD byte/packet accounting on MT7621

The CPU load should be lower when you do parallel high speed upload and download and hardware offload of network processing is active.

1 Like