[dpdk-dev] [PATCH 07/10] examples/l3fwd: add function return value check
Stephen Hemminger
stephen at networkplumber.org
Fri Jun 30 20:15:56 CEST 2023
On Mon, 19 Apr 2021 21:34:46 +0800
"Min Hu (Connor)" <humin29 at huawei.com> wrote:
> From: HongBo Zheng <zhenghongbo3 at huawei.com>
>
> Return value of a function 'rte_eth_macaddr_get' called at
> l3fwd_eth_dev_port_setup is not checked, but it is usually
> checked for this function.
>
> This patch fix this problem.
>
> Fixes: a65bf3d724df ("examples/l3fwd: add ethdev setup based on eventdev")
> Cc: stable at dpdk.org
>
> Signed-off-by: HongBo Zheng <zhenghongbo3 at huawei.com>
> Signed-off-by: Min Hu (Connor) <humin29 at huawei.com>
This looks correct, but only a buggy driver would never set macaddr.
Acked-by: Stephen Hemminger <stephen at networkplumber.org>
More information about the dev
mailing list