net/bnxt: check representors devargs before probe
authorSomnath Kotur <somnath.kotur@broadcom.com>
Fri, 25 Sep 2020 10:40:44 +0000 (16:10 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:10 +0000 (19:19 +0200)
commit9160c5663e6280e082ff24ec883ad88260498b6f
tree1b3418ccdbc23d9dbdfd1eb8776493411517620c
parentc23f9ded03911c09e1520d073f2aa40495020f2e
net/bnxt: check representors devargs before probe

Check for num_rep before invoking rep port probe. num_rep should be !=0
if representor devargs provided.

Fixes: 6dc83230b43b ("net/bnxt: support port representor data path")
Cc: stable@dpdk.org
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/bnxt/bnxt_ethdev.c