[PATCH v5 8/9] tap: make tap_update_mac() generic