devlink: share user_ptr pointer for both devlink and devlink_port
authorJiri Pirko <jiri@mellanox.com>
Fri, 8 Apr 2016 17:12:48 +0000 (19:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Apr 2016 19:40:08 +0000 (15:40 -0400)
commit1fc2257e837f86c2688fdcc5c8810b73c133794d
tree83ad768f616aac1b0e5e9f0e2c9f09dbdfcdc7d6
parent67b5b21f389502c3fb18b46d4fa9d02c38982fce
devlink: share user_ptr pointer for both devlink and devlink_port

Ptr to devlink structure can be easily obtained from
devlink_port->devlink. So share user_ptr[0] pointer for both and leave
user_ptr[1] free for other users.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c