1db4d2330b
This patch checks negotiated features to see if necessary to offload before set the tap device offload capabilities. It also checks if kernel support the TUNSETOFFLOAD operation. Fixes: 5e97e4202563 ("net/virtio-user: enable offloading") Cc: stable@dpdk.org Signed-off-by: Eric Zhang <eric.zhang@windriver.com> Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>