1. A computing device serving as host machine for a plurality of virtual machines, the computing device comprising: a physical network interface controller (PNIC) for receiving data packets from a network, the PNIC configured to store a plurality of sets of lookup tables for a plurality of different logical networks and to use a logical network identifier in each received data packet to select a set of lookup tables for providing a set of lookup results for the received packet based on a set of connection parameters of the received data packet; a virtualization software for operating the plurality of virtual machines and for forwarding each received packets to at least one of the plurality of virtual machines, wherein forwarding each received packet comprises using the set of lookup results for the received packet provided by the PNIC to perform firewall operations on the received packet.