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