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