ethdev: add sanity checks in control APIs
authorMin Hu (Connor) <humin29@huawei.com>
Wed, 21 Apr 2021 12:36:33 +0000 (20:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 21 Apr 2021 16:36:56 +0000 (18:36 +0200)
commit53ef1b34776b74d7614096dd67a069e39f099308
tree8388305fd1c53b6e38c85de8c2e16f4c8e10e20c
parentb37ddc636c5d3fefbbfdd06a851d4f5499ae8888
ethdev: add sanity checks in control APIs

This patch adds more sanity checks in control path APIs.

Fixes: 214ed1acd125 ("ethdev: add iterator to match devargs input")
Fixes: 3d98f921fbe9 ("ethdev: unify prefix for static functions and variables")
Fixes: 0366137722a0 ("ethdev: check for invalid device name")
Fixes: d948f596fee2 ("ethdev: fix port data mismatched in multiple process model")
Fixes: 5b7ba31148a8 ("ethdev: add port ownership")
Fixes: f8244c6399d9 ("ethdev: increase port id range")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: Kevin Traynor <ktraynor@redhat.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
lib/ethdev/rte_ethdev.c
lib/ethdev/rte_ethdev.h