net/hns3: fix configuring illegal VLAN PVID
authorMin Hu (Connor) <humin29@huawei.com>
Tue, 17 Mar 2020 09:12:05 +0000 (17:12 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:04 +0000 (13:57 +0200)
commitd33fb7f939e6fb9c7882b57e9c3c0fab68c16874
tree9bbdcac729bc5b0442eceaf2b4015ffe3a42566d
parentc064f6918c7a7efac119ea0556e6c71d8d27a3fa
net/hns3: fix configuring illegal VLAN PVID

The VLAN pvid ranges from 0 to 4095. The hns3 PMD driver does not
support this situation that the VLAN pvid is larger than Maximum VLAN
ID(4095).

Fixes: 411d23b9eafb ("net/hns3: support VLAN")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_ethdev.c