On Thu, 7 Nov 2024 19:56:44 +0800 Jie Hai <haij...@huawei.com> wrote:
> From: Dengdui Huang <huangdeng...@huawei.com> > > Return EINVAL instead of ENOSPC when the same counter ID is > used for multiple times to create a counter. > > Fixes: fcba820d9b9e ("net/hns3: support flow director") > Cc: sta...@dpdk.org > > Signed-off-by: Dengdui Huang <huangdeng...@huawei.com> > Signed-off-by: Jie Hai <haij...@huawei.com> Not sure that actual error number matters that much, but looks good to me. Another alternative might be EEXIST which is the error code used when creat() is called on an existing file. Acked-by: Stephen Hemminger <step...@networkplumber.org>