The net_info array structure used in rxe_net and rxe_net_sysfs has been
replaced with a dynamically-allocated resizable circular linked list.
Modified rxe_net_info struct to accomodate list_head struct and an int
index to replace previous array indices. Removed RXE_MAX_IF_INDEX upper
array bound constant.
Added functions net_info_list_add and net_info_list_get to improve
interface with new data structure. Added function net_info_list_release
to clean up list on module exit.
Removed net_to_rxe and net_to_port functions; these no longer appear
necessary with use of new net_info_list_get function.
Updated module_param_call for rxe device 'add' and 'remove' calls to
newer module_param_cb interface.
Tested adding/removing two ethernet devices with rxe_cfg, also passes
ibv_rc_pingpong test.
The net_info array structure used in rxe_net and rxe_net_sysfs has been replaced with a dynamically-allocated resizable circular linked list.
Modified rxe_net_info struct to accomodate list_head struct and an int index to replace previous array indices. Removed RXE_MAX_IF_INDEX upper array bound constant.
Added functions net_info_list_add and net_info_list_get to improve interface with new data structure. Added function net_info_list_release to clean up list on module exit.
Removed net_to_rxe and net_to_port functions; these no longer appear necessary with use of new net_info_list_get function.
Updated
module_param_call
for rxe device 'add' and 'remove' calls to newermodule_param_cb
interface.Tested adding/removing two ethernet devices with rxe_cfg, also passes ibv_rc_pingpong test.
Fixes: #8