Hi Stephen,
I am testing UDP IPv4 offloads. Earlier with failsafe PMD , my dpdk app would subscribe to hotplug add and delete callbacks. In Hotplug add callback the appropriate mbuf flags were set for hardware to perform checksum offload and in hotplug delete, the function pointer was modified to calculate checksum in software.
To test netvsc PMD, I have commented out the code in hotplug callbacks to understand what happens. As you mentioned, as part of hotplug add, hn_vf_add restores all the VF offloads and it works as expected. In case of hotplug removal, I notice that even in the absence of software checksum , the packets are reaching the destination with the correct checksum. The dpdk app continues to set mbuf flags for offload in the sender. I expected packets to be dropped at the sender because offloads should be absent as VF is removed. Does netvsc pmd calculate checksum if mbuf checksum offload flags are set and VF is absent?
Regards,
Nandini