On 7/30/19 12:08 AM, Jiri Pirko wrote: > Mon, Jul 29, 2019 at 10:17:25PM CEST, dsah...@gmail.com wrote: >> On 7/27/19 3:44 AM, Jiri Pirko wrote: >>> From: Jiri Pirko <j...@mellanox.com> >>> >>> Devlink from the beginning counts with network namespaces, but the >>> instances has been fixed to init_net. The first patch allows user >>> to move existing devlink instances into namespaces: >>> >> >> so you intend for an asic, for example, to have multiple devlink >> instances where each instance governs a set of related ports (e.g., >> ports that share a set of hardware resources) and those instances can be >> managed from distinct network namespaces? > > No, no multiple devlink instances for asic intended.
So it should be allowed for an asic to have resources split across network namespaces. e.g., something like this: namespace 1 | namespace 2 | ... | namespace N | | | { ports 1 } | { ports 2 } | ... | { ports N } | | | devlink 1 | devlink 2 | ... | devlink N ================================================= driver