only update the port status in certain cases

with this change only IFF_UP is taken into account