net/tap: fix protocol field
authorVipin Varghese <vipin.varghese@intel.com>
Tue, 22 May 2018 10:47:14 +0000 (16:17 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 22 May 2018 22:35:01 +0000 (00:35 +0200)
commitd1883bf1de0778b5443b5d42a81adb8908b99088
tree1a79c5cf9c9bf84f0664cf7f206584147118a400
parent0568dac3b4ec7ea8bed7ffb680e38490caa6868b
net/tap: fix protocol field

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>
drivers/net/tap/rte_eth_tap.c
drivers/net/tap/rte_eth_tap.h