]> git.droids-corp.org - dpdk.git/commit
net/nfp: fix initialization
authorPeng Zhang <peng.zhang@corigine.com>
Wed, 15 Jun 2022 10:14:17 +0000 (12:14 +0200)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Fri, 17 Jun 2022 15:29:55 +0000 (17:29 +0200)
commit5c305e218f15552d828e10293d19d9a06c4747f4
tree16377c1c474f2e10b7bd43b148352fb796b25ed6
parent3ece835a40773604d802dd2791731deac0a663f2
net/nfp: fix initialization

When the testpmd start-up, it will check MTU range,
if MTU > flubfsz, it will lead testpmd start fail.
Because the hw->flbufsz doesn't have the initialized
value, so it will lead the bug.

Fixes: 417be15e5f11 ("net/nfp: make sure MTU is never larger than mbuf size")
Cc: stable@dpdk.org
Signed-off-by: Peng Zhang <peng.zhang@corigine.com>
Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>
drivers/net/nfp/nfp_ethdev.c
drivers/net/nfp/nfp_ethdev_vf.c