d1883bf1de
The TX function is shared between TAP and TUN PMD. Checking TUN-TAP type field will ensure the TAP PMD will always have protocol field as 0. Fixes: 204d026a3922 ("net/tap: support tun") Signed-off-by: Vipin Varghese <vipin.varghese@intel.com> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>