Method, network adapter, host system, and network device for implementing network adapter offload function
First Claim
1. A method for implementing a network adapter offload function by a network device that comprises a host system and a network adapter, the method comprising:
- performing a data packet communication protocol determination to determine, according to a network adapter policy table stored in the network adapter or a host policy table stored in the host system, whether a data packet is a known data packet to the network adapter or an unknown data packet to the network adapter, wherein the network adapter policy table and the host policy table include policy entries, wherein each policy entry includes a policy type and an action, wherein the data packet is the known data packet when a communication protocol of the data packet matches a policy type of an existing policy entry in the network adapter policy table or the host policy table, wherein the data packet is the unknown data packet when the communication protocol of the data packet does not match a policy type of any existing policy entry in the network adapter policy table or the host policy table, wherein the data packet communication protocol determination is performed by the host system using the host policy table when the data packet is a downlink data packet, and wherein the data packet communication protocol determination is performed by the network adapter using the network adapter policy table when the data packet is an uplink data packet;
performing, by the network adapter and according to an action of the existing policy entry in the network adapter policy table, a corresponding protocol stack offload operation for the known data packet;
parsing the unknown data packet based on the determination that the communication protocol of the data packet is unknown to the network adapter;
generating a new policy entry for the communication protocol of the unknown data packet; and
updating the new policy entry for the communication protocol of the unknown data packet into the host policy table and the network adapter policy table.
1 Assignment
0 Petitions
Accused Products
Abstract
A method, a network adapter, a host system, and a network device for implementing a network adapter offload function. If a data packet received by the network adapter or the host system is a data packet unknown to the network adapter, the data packet unknown to the network adapter is parsed, a new policy entry is generated, and the new policy entry is updated into the host policy table and the network adapter policy table. Therefore, for a packet that includes a new proprietary or standard protocol header Tag, only a functional module that parses the packet needs to be updated, so that the functional module is capable of processing such a packet and delivering a new policy entry to the host policy table and the network adapter policy table and the network adapter does not need to be changed.
-
Citations
20 Claims
-
1. A method for implementing a network adapter offload function by a network device that comprises a host system and a network adapter, the method comprising:
-
performing a data packet communication protocol determination to determine, according to a network adapter policy table stored in the network adapter or a host policy table stored in the host system, whether a data packet is a known data packet to the network adapter or an unknown data packet to the network adapter, wherein the network adapter policy table and the host policy table include policy entries, wherein each policy entry includes a policy type and an action, wherein the data packet is the known data packet when a communication protocol of the data packet matches a policy type of an existing policy entry in the network adapter policy table or the host policy table, wherein the data packet is the unknown data packet when the communication protocol of the data packet does not match a policy type of any existing policy entry in the network adapter policy table or the host policy table, wherein the data packet communication protocol determination is performed by the host system using the host policy table when the data packet is a downlink data packet, and wherein the data packet communication protocol determination is performed by the network adapter using the network adapter policy table when the data packet is an uplink data packet; performing, by the network adapter and according to an action of the existing policy entry in the network adapter policy table, a corresponding protocol stack offload operation for the known data packet; parsing the unknown data packet based on the determination that the communication protocol of the data packet is unknown to the network adapter; generating a new policy entry for the communication protocol of the unknown data packet; and updating the new policy entry for the communication protocol of the unknown data packet into the host policy table and the network adapter policy table. - View Dependent Claims (2, 3, 4, 5, 20)
-
-
6. A network adapter, comprising:
-
a memory comprising instructions; and at least one processor coupled to the memory and configured to execute the instructions to; perform a data packet communication protocol determination to determine, according to a network adapter policy table, whether a data packet is a known data packet to the network adapter or an unknown data packet to the network adapter, wherein the network adapter policy table includes policy entries, wherein each policy entry includes a policy type and an action, wherein the data packet is the known data packet when a communication protocol of the data packet matches a policy type of an existing policy entry in the network adapter policy table, wherein the data packet is the unknown data packet when the communication protocol of the data packet does not match a policy type of any existing policy entry in the network adapter policy table, and wherein the data packet is an uplink data packet; perform a corresponding protocol stack offload operation for the known data packet according to an action of the existing policy entry in the network adapter policy table; send, based on the determination that the data packet is the unknown data packet to the network adapter, the unknown data packet to a host system so that the host system parses the unknown data packet and generates a new policy entry for the communication protocol of the unknown data packet; receive, from the host system, the new policy entry for the communication protocol of the unknown data packet; and update the new policy entry for the communication protocol of the unknown data packet into the network adapter policy table. - View Dependent Claims (7)
-
-
8. A host system, comprising:
-
a memory comprising instructions; and at least one processor coupled to the memory and configured to execute the instructions to; perform a data packet communication protocol determination to determine, according to a host policy table, whether a data packet is a known data packet to a network adapter or an unknown data packet to the network adapter, wherein the host policy table includes policy entries, wherein each policy entry includes a policy type and an action, wherein the data packet is the known data packet when a communication protocol of the data packet matches a policy type of an existing policy entry in the host policy table, wherein the data packet is the unknown data packet when the communication protocol of the data packet does not match a policy type of any existing policy entry in the host policy table, and wherein the data packet is a downlink data packet; send, based on the determination that the data packet is the known data packet to the network adapter, the known data packet to the network adapter so that the network adapter performs a corresponding protocol stack offload operation for the data packet according to a policy entry in a network adapter policy table; parse, based on the determination that the data packet is an unknown data packet to the network adapter, the unknown data packet and generate a new policy entry for the communication protocol of the unknown data packet; update the new policy entry for the communication protocol of the unknown data packet into the host policy table; and send the new policy entry for the communication protocol of the unknown data packet to the network adapter, so that the network adapter updates the new policy entry for the communication protocol of the unknown data packet into the network adapter policy table. - View Dependent Claims (9, 10)
-
-
11. A network device for implementing a network adapter offload function, comprising:
-
a network adapter comprising; a first memory comprising instructions; and at least a first processor coupled to the first memory and configured to execute the instructions to; perform a data packet communication protocol determination to determine, according to a network adapter policy table, whether a data packet is a known data packet to the network adapter or an unknown data packet to the network adapter, wherein the network adapter policy table includes policy entries, wherein each policy entry includes a policy type and an action, wherein the data packet matches a policy type of an existing policy entry in the network adapter policy table, wherein the data packet is the unknown data packet when the communication protocol of the data packet does not match a policy type of any existing policy entry in the network adapter policy table, and wherein the data packet communication protocol determination is performed by the network adapter using the network adapter policy table when the data packet is an uplink data packet; perform, based on the determination that the data packet is the known data packet to the network adapter, a corresponding protocol stack offload operation for the known data packet according to an action of the existing policy entry in the network adapter policy table; send, based on the determination that the data packet is the unknown data packet to the network adapter, the unknown data packet to a host system so that the host system parses the unknown data packet and generates a new policy entry for the communication protocol of the unknown data packet; receive the new policy entry for the communication protocol of the unknown data packet; and update the new policy entry for the communication protocol of the unknown data packet into the network adapter policy table; and a host system comprising; a second memory comprising instructions; and at least a second processor coupled to the second memory and configured to execute the instructions to; perform the data packet communication protocol determination to determine, according to a host policy table, whether the data packet is a known data packet to a network adapter or an unknown data packet to the network adapter, wherein the host policy table includes policy entries, wherein each policy entry includes a policy type and an action, wherein the data packet is the known data packet when a communication protocol of the data packet matches a policy type of an existing policy entry in the host policy table, wherein the data packet is the unknown data packet when the communication protocol of the data packet does not match a policy type of any existing policy entry in the host policy table, and wherein the data packet communication protocol determination is performed by the host system using the host policy table when the data packet is a downlink data packet; send, based on the determination that the data packet is the known data packet to the network adapter, the known data packet to the network adapter so that the network adapter performs a corresponding protocol stack offload operation for the known data packet according to the policy entry in the network adapter policy table; parse, based on the determination that the data packet is the unknown data packet to the network adapter, the unknown data packet and generate the new policy entry for the communication protocol of the unknown data packet; update the new policy entry for the communication protocol of the unknown data packet into the host policy table; and send the new policy entry for the communication protocol of the unknown data packet to the network adapter, so that the network adapter updates the new policy entry for the communication protocol of the unknown data packet into the network adapter policy table. - View Dependent Claims (12, 13, 14)
-
-
15. A system for implementing a network adapter offload function, comprising:
-
a network adapter comprising; a first memory comprising instructions; and at least a first processor coupled to the first memory and configured to execute the instructions to; perform a data packet communication protocol determination to determine, according to a network adapter policy table, whether a data packet is a known data packet to the network adapter or an unknown data packet to the network adapter wherein the data packet is the known data packet when a communication protocol of the data packet is known to the network adapter, wherein the data packet is the unknown data packet when the communication protocol of the data packet is unknown to the network adapter, and wherein the data packet communication protocol determination is performed by the network adapter using the network adapter policy table when the data packet is an uplink data packet; perform, based on the determination that the data packet is the known data packet, a corresponding protocol stack offload operation for the known data packet according to the network adapter policy table; send, based on the determination that the data packet is the unknown data packet, the unknown data packet to a host system so that the host system parses the unknown data packet and generates a new policy entry for the communication protocol of the unknown data packet; receive the new policy entry for the communication protocol of the unknown data packet; and update the new policy entry for the communication protocol of the unknown data packet into the network adapter policy table; a host system comprising; a second memory comprising instructions; and at least a second processor coupled to the second memory and configured to execute the instructions to; perform the data packet communication protocol determination to determine, according to a host policy table, whether the data packet is the known data packet to the network adapter or the unknown data packet to the network adapter, wherein the data packet communication protocol determination is performed by the host system using the host policy table when the data packet is a downlink data packet; send, based on the determination that the data packet is the known data packet to the network adapter, the known data packet to the network adapter so that the network adapter performs a corresponding protocol stack offload operation for the known data packet according to a policy entry in a network adapter policy table; parse, based on the determination that the data packet is the unknown data packet to the network adapter, the unknown data packet and generate the new policy entry for the communication protocol of the unknown data packet; update the new policy entry for the communication protocol of the unknown data packet into the host policy table; and send the new policy entry for the communication protocol of the unknown data packet to the network adapter; and a remote server comprising; a third memory comprising instructions; and at least a third processor coupled to the third memory and configured to execute the instructions to; receive the unknown data packet from the host system; parse the unknown data packet; generate the new policy entry for the communication protocol of the unknown data packet; send the new policy entry to the host system so that the host system simultaneously updates the new policy entry into the host policy table of the host system and the network adapter policy table; receive an entered new protocol registration command, where the new protocol registration command comprises a keyword and an entry that points to a parsing function handler corresponding to the keyword; and update the protocol parsing table in the remote server according to the new protocol registration command received by the registration command receiving module. - View Dependent Claims (16, 17, 18, 19)
-
Specification