receipt flags testing replaced with macros

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