summaryrefslogtreecommitdiff
path: root/drivers/net/sungem_phy.c
diff options
context:
space:
mode:
authorParav Pandit <parav@mellanox.com>2019-06-07 15:16:58 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2019-07-03 22:50:42 +0300
commitdd28087c14777a7f2571260d44394eb709a59368 (patch)
tree0a619ef9ad17b0051017ac23b81c3e79e3b30824 /drivers/net/sungem_phy.c
parent7e736f9ae3d12272fec5a2b24e41b78ed58525a4 (diff)
downloadlinux-dd28087c14777a7f2571260d44394eb709a59368.tar.xz
net/mlx5: Refactor mlx5_esw_query_functions for modularity
Functions change event output data size changes when functions other than VFs will be enabled in HCA CAP. With current API, multiple callers needs to align, calculate accurate size of the output data depending on number on non VF functions enabled in the device. Instead of duplicating such math at multiple places, refactor mlx5_esw_query_functions() to return raw output allocated by itself. Caller must free the allocated memory using kvfree() as described in the function comment section. This hides calcuation within mlx5_esw_query_functions() and provides simpler API. Signed-off-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/sungem_phy.c')
0 files changed, 0 insertions, 0 deletions