bug - invalid data type in function parameter

Change-Id: I820b31c8936ead03f8961a2238ad700508d365f4
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>