Could you replace 3 with (IVS_MAX_BITMAP_IN_PORT/32), we dont have to look at this place in future when we extend bitmap to 256.