issue: #440936 make 'for_next' branch c++ compatible - step #10 GCC 4.8.2
with -Wc++-compat is now supported - required many conversions between int
and enums

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