optimize ethernet ip packet type