backport ethdev add API to get device configuration