changing parameter declaration to macro

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