Add utils.

Signed-off-by: Yunchao Chen <chenyc@marvell.com>