patch dpid_pattern