L2FWD:move vec_validate out of access function