[PATCH 4.19 07/63] ethernet: add a helper for assigning port addresses