commit | 1fc2257e837f86c2688fdcc5c8810b73c133794d | [log] [tgz] |
---|---|---|
author | Jiri Pirko <jiri@mellanox.com> | Fri Apr 08 19:12:48 2016 +0200 |
committer | David S. Miller <davem@davemloft.net> | Fri Apr 08 15:40:08 2016 -0400 |
tree | 83ad768f616aac1b0e5e9f0e2c9f09dbdfcdc7d6 | |
parent | 67b5b21f389502c3fb18b46d4fa9d02c38982fce [diff] |
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>