On Thu, 7 Nov 2024 19:56:44 +0800 Jie Hai <[email protected]> wrote:
> From: Dengdui Huang <[email protected]> > > 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: [email protected] > > Signed-off-by: Dengdui Huang <[email protected]> > Signed-off-by: Jie Hai <[email protected]> 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 <[email protected]>

