| CPC G06F 13/4221 (2013.01) [G06F 2213/0026 (2013.01)] | 17 Claims |

|
10. An electronic device, comprising: a processor and a memory; wherein
the memory stores computer-executable instructions; and the processor executes the computer-executable instructions stored in the memory so as to perform a data sending method or a data receiving method applied to a smart network interface card,
wherein the smart network interface card has bus ports of at least two buses, and the smart network interface card communicates with a server through the at least two buses,
the data sending method comprises:
receiving at least two data sending requests sent by the server through the at least two buses, wherein the at least two data sending requests are configured to request the smart network interface card to send message data stored on a side of the server to an external device,
determining a corresponding target hardware queue for each of the at least two data sending requests, wherein the corresponding target hardware queue is configured to communicate with the server through one of the at least two buses, target hardware queues corresponding to the at least two data sending requests are distributed in at least two hardware queue groups, and the at least two hardware queue groups are in one-to-one correspondence with the at least two buses, and
communicating, by the target hardware queues, with the server through the at least two buses at the same time to obtain corresponding message data, and sending the corresponding message data to the external device;
the data receiving method comprises:
receiving at least two data receiving requests sent by an external device through a network port, wherein the at least two data receiving requests are configured to request the smart network interface card to store message data sent by the external device in the server,
determining a corresponding target hardware queue for each of the at least two data receiving requests, wherein the corresponding target hardware queue is configured to communicate with the server through one of the at least two buses, target hardware queues corresponding to the at least two data receiving requests are distributed in at least two hardware queue groups, and the at least two hardware queue groups are in one-to-one correspondence with the at least two buses, and
communicating, by the target hardware queues, with the server through the at least two buses at the same time, to send the message data to the server.
|