net/hns3: fix MTU config complexity
authorMin Hu (Connor) <humin29@huawei.com>
Thu, 1 Apr 2021 13:38:03 +0000 (21:38 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 1 Apr 2021 16:39:55 +0000 (18:39 +0200)
commitd81d78eb86d50732ba98a8b255d19c2f6292521c
treeab5e098ca3c36702234f14c8b3ec83742f0e988d
parentf388f1b16a3fee25dceb57b9e8623a2552f7ce17
net/hns3: fix MTU config complexity

This patch fixed cyclomatic complexity about MTU
in device configure process.

Fixes: 1f5ca0b460cd ("net/hns3: support some device operations")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_ethdev.c