[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170610.155924.632737973845428746.davem@davemloft.net>
Date: Sat, 10 Jun 2017 15:59:24 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: nicolas.dichtel@...nd.com
Cc: netdev@...r.kernel.org, jhs@...atatu.com
Subject: Re: [PATCH net-next 2/2] netns: fix error code when the nsid is
already used
From: Nicolas Dichtel <nicolas.dichtel@...nd.com>
Date: Fri, 9 Jun 2017 14:41:57 +0200
> When the user tries to assign a specific nsid, idr_alloc() is called with
> the range [nsid, nsid+1]. If this nsid is already used, idr_alloc() returns
> ENOSPC (No space left on device). In our case, it's better to return
> EEXIST to make it clear that the nsid is not available.
>
> CC: Jamal Hadi Salim <jhs@...atatu.com>
> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@...nd.com>
Applied.
Powered by blists - more mailing lists