+2
−0
+5
−10
Loading
In case user tries to add listener with the same parameters then error shall be returned instead silent success. That is more aligned with what is happening e.g. for rpc_nvmf_create_subsystem i.e. when there is a try to create the subsystem with the same nqn error is being returned. Moreover, although previous behavior allows to call _add_listener with the same parameters N times only single _remove_listener would release allocated resources for it. Issue was spotted earlier, however since then nobody has fixed that, see https://review.gerrithub.io/c/spdk/spdk/+/482446 and comments there. Change-Id: Ifbdb20dc49571f6025f3b06d15c56821f505eee4 Signed-off-by:Jacek Kalwas <jacek.kalwas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22606 Community-CI: Mellanox Build Bot Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com>