A method for sending a virtual extensible local area network, VxLAN, packet, wherein the method comprises the steps of: operating a computer device, the computer device comprising a central processing unit, a network adapter, and a virtual machine, and the network adapter comprises a network adapter processor; receiving, by the network adapter processor, a first packet sent by the virtual machine; obtaining, by the network adapter processor from the received first packet, an ID of a virtual function, VF, for forwarding the first packet, and querying, according to the ID of the VF, for a VF attribute corresponding to the ID of the VF; and when the VF attribute is a VxLAN attribute, obtaining a VxLAN network identifier, VNI, of the VF; determining, by the network adapter processor, whether the network adapter stores encapsulation information required for performing VxLAN encapsulation on the first packet, wherein the encapsulation information comprises an encapsulation Media Access Control, MAC, address and an encapsulation Internet Protocol, IP, address, the encapsulation MAC address is a MAC address of a next-hop device passed through when the first packet is sent, and the encapsulation IP address is an IP address of a virtual extensible local area network tunnel end point, VTEP, on a destination end of the first packet; and when the network adapter stores the encapsulation information required for performing VxLAN encapsulation on the first packet, performing VxLAN encapsulation on the first packet according to the encapsulation information, and sending the encapsulated first packet; or when the network adapter does not store the encapsulation information required for performing VxLAN encapsulation on the first packet, sending an obtaining request to the central processing unit, obtaining the encapsulation information from the central processing unit and storing the encapsulation information, and sending a packet obtained after VxLAN encapsulation is performed on the first packet; wherein the obtaining request carries the first packet and the VNI of the VF for forwarding the first packet.. operating a computer device, the computer device comprising a central processing unit, a network adapter, and a virtual machine, and the network adapter comprises a network adapter processor; receiving, by the network adapter processor, a first packet sent by the virtual machine; obtaining, by the network adapter processor from the received first packet, an ID of a virtual function, VF, for forwarding the first packet, and querying, according to the ID of the VF, for a VF attribute corresponding to the ID of the VF; and when the VF attribute is a VxLAN attribute, obtaining a VxLAN network identifier, VNI, of the VF; determining, by the network adapter processor, whether the network adapter stores encapsulation information required for performing VxLAN encapsulation on the first packet, wherein the encapsulation information comprises an encapsulation Media Access Control, MAC, address and an encapsulation Internet Protocol, IP, address, the encapsulation MAC address is a MAC address of a next-hop device passed through when the first packet is sent, and the encapsulation IP address is an IP address of a virtual extensible local area network tunnel end point, VTEP, on a destination end of the first packet; and when the network adapter stores the encapsulation information required for performing VxLAN encapsulation on the first packet, performing VxLAN encapsulation on the first packet according to the encapsulation information, and sending the encapsulated first packet; or when the network adapter does not store the encapsulation information required for performing VxLAN encapsulation on the first packet, sending an obtaining request to the central processing unit, obtaining the encapsulation information from the central processing unit and storing the encapsulation information, and sending a packet obtained after VxLAN encapsulation is performed on the first packet; wherein the obtaining request carries the first packet and the VNI of the VF for forwarding the first packet..