net/tap: fix check for mbuf number of segment
authorYunjian Wang <wangyunjian@huawei.com>
Thu, 16 Apr 2020 03:04:35 +0000 (11:04 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:08 +0000 (13:57 +0200)
commitcc6cf04f59ec20757990b3e8586b7c3a7f497720
tree00f53e3fe4f02d181c2e39bb21fed3a03b26ad2c
parent710aa4279097e9ee5a131b7e0732e5a8ef8bcfc1
net/tap: fix check for mbuf number of segment

Now the rxq->pool is mbuf concatenation, but its nb_segs is 1. When
conducting some sanity checks on the mbuf with debug enabled, it fails.

Fixes: 0781f5762cfe ("net/tap: support segmented mbufs")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/tap/rte_eth_tap.c