Re: [PATCH net-next] devlink: Always use user_ptr[0] for devlink and simplify post_doit

2020-07-22 Thread David Miller
From: Parav Pandit Date: Wed, 22 Jul 2020 18:57:11 +0300 > Currently devlink instance is searched on all doit() operations. > But it is optionally stored into user_ptr[0]. This requires > rediscovering devlink again doing post_doit(). > > Few devlink commands related to port shared buffers needs

Re: [PATCH net-next] devlink: Always use user_ptr[0] for devlink and simplify post_doit

2020-07-22 Thread Jakub Kicinski
On Wed, 22 Jul 2020 18:57:11 +0300 Parav Pandit wrote: > Currently devlink instance is searched on all doit() operations. > But it is optionally stored into user_ptr[0]. This requires > rediscovering devlink again doing post_doit(). > > Few devlink commands related to port shared buffers needs 3 p

[PATCH net-next] devlink: Always use user_ptr[0] for devlink and simplify post_doit

2020-07-22 Thread Parav Pandit
Currently devlink instance is searched on all doit() operations. But it is optionally stored into user_ptr[0]. This requires rediscovering devlink again doing post_doit(). Few devlink commands related to port shared buffers needs 3 pointers (devlink, devlink_port, and devlink_sb) while executing d