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

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