Flying ad hoc networks (FANETs) are visioned to unlock the potential of the Internet of Drones in various application scenarios like surveillance, agriculture, health care, disaster management, and rescue operations. As the unmanned aerial vehicles possess fast movements and frequent topological variations, selection of the next hop, self‐adaptation, and avoidance of dissemination loops have proven to be the challenging issues that have a considerable impact on the performance of a FANET. We propose a performance‐aware routing mechanism, G‐OLSR, for efficient communication and collaboration among the unmanned aerial vehicles in a FANET environment. The self‐adaptation of the network in case of any topological changes is considered in the proposed mechanism. Moreover, the proposed mechanism avoids the dissemination loops and it, consequently, improves the performance of the network. The simulation results show that the proposed mechanism performs better in terms of delay, message overhead, packet delivery ratio, and throughput than Optimized Link State Routing.