net/tap: return empty port offload capabilities
authorOphir Munk <ophirmu@mellanox.com>
Thu, 26 Apr 2018 11:13:02 +0000 (11:13 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 27 Apr 2018 17:00:57 +0000 (18:00 +0100)
commitead63dd3181c9fdf4a191072f622ad2b934a4b9f
tree9b2b88d367395df9eddf60d55fdbbd97c89b39af
parentc43e0f690413fc7233b735e641f22e8eb47c50c0
net/tap: return empty port offload capabilities

Fix internal report on port specific offload capabilities to be 0 (no
capabilities). Before this commit port capabilities were a clone of queue
capabilities, however the current TAP offload capabilities (e.g.
checksum calculation) are per queue and are not specific per port.
This commit fixes an internal validation check for new configured
queue offloads.
The port capability API keeps reporting all queue capabilities as port
capabilities.

Fixes: 95ae196ae10b ("net/tap: use new Rx offloads API")
Fixes: 818fe14a9891 ("net/tap: use new Tx offloads API")
Cc: stable@dpdk.org
Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
drivers/net/tap/rte_eth_tap.c