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, comprising:
- determining, according to a network adapter policy table stored in a network adapter or a host policy table stored in a host system, whether a received data packet is known to the network adapter or unknown to the network adapter;
performing, by the network adapter and according to a policy entry in the network adapter policy table, a corresponding protocol stack offload operation for the data packet known to the network adapter based on the determination that the data packet is known to the network adapter;
parsing the data packet unknown to the network adapter based on the determination that the data packet is unknown to the network adapter;
generating a new policy entry based on the determination that the data packet is unknown to the network adapter; and
updating the new policy entry into the host policy table and the network adapter policy table based on the determination that the data packet is unknown to the network adapter.
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
19 Claims
-
1. A method for implementing a network adapter offload function, comprising:
-
determining, according to a network adapter policy table stored in a network adapter or a host policy table stored in a host system, whether a received data packet is known to the network adapter or unknown to the network adapter; performing, by the network adapter and according to a policy entry in the network adapter policy table, a corresponding protocol stack offload operation for the data packet known to the network adapter based on the determination that the data packet is known to the network adapter; parsing the data packet unknown to the network adapter based on the determination that the data packet is unknown to the network adapter; generating a new policy entry based on the determination that the data packet is unknown to the network adapter; and updating the new policy entry into the host policy table and the network adapter policy table based on the determination that the data packet is unknown to the network adapter. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A network adapter, comprising:
-
a first determining module configured to determine, according to a network adapter policy table, whether a received data packet is known to the network adapter or unknown to the network adapter; a first offloading module configured to perform a corresponding protocol stack offload operation for the data packet according to the network adapter policy table based on the determination that the data packet is known to the network adapter; an uplink packet sending module configured to send, based on the determination that the data packet is unknown to the network adapter, the data packet to a host system so that the host system parses the data packet and generates a new policy entry; and a first policy updating module configured to receive the new policy entry and update the new policy entry into the network adapter policy table. - View Dependent Claims (7)
-
-
8. A host system, comprising:
-
a second determining module configured to determine, according to a host policy table, whether a received data packet is known to a network adapter or unknown to the network adapter; a downlink packet sending module configured to send, based on the determination that the data packet is known to the network adapter, the 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; a packet parsing module configured to parse, based on the determination that the received data packet is unknown to the network adapter, the data packet unknown to the network adapter and generate a new policy entry; and a second policy updating module configured to update the new policy entry into the host policy table and send the new policy entry to the network adapter. - View Dependent Claims (9, 10)
-
-
11. A network device for implementing a network adapter offload function, comprising:
-
a network adapter comprising; a first determining module configured to determine, according to a network adapter policy table, whether a received data packet is known to the network adapter or unknown to the network adapter; a first offloading module configured to perform, based on the determination that the data packet is known to the network adapter, a corresponding protocol stack offload operation for the data packet according to the network adapter policy table; an uplink packet sending module configured to send, based on the determination that the data packet is unknown to the network adapter, the data packet to a host system so that the host system parses the data packet and generates a new policy entry; and a first policy updating module configured to receive the new policy entry and update the new policy entry into the network adapter policy table; and a host system comprising; a second determining module configured to determine, according to a host policy table, whether a received data packet is known to a network adapter or unknown to the network adapter; a downlink packet sending module configured to send, based on the determination that the data packet is known to the network adapter, the 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; a packet parsing module configured to parse, based on the determination that the received data packet is unknown to the network adapter, the data packet unknown to the network adapter and generate a new policy entry; and a second policy updating module configured to update the new policy entry into the host policy table and send the new policy entry to the network adapter. - View Dependent Claims (12, 13, 14)
-
-
15. A system for implementing a network adapter offload function, comprising:
-
a network adapter comprising; a first determining module configured to determine, according to a network adapter policy table, whether a received data packet is known to the network adapter or unknown to the network adapter; a first offloading module configured to perform, based on the determination that the data packet is known to the network adapter, a corresponding protocol stack offload operation for the data packet according to the network adapter policy table; an uplink packet sending module configured to send, based on the determination that the data packet is unknown to the network adapter, the data packet to a host system so that the host system parses the data packet and generates a new policy entry; and a first policy updating module configured to receive the new policy entry and update the new policy entry into the network adapter policy table; a host system comprising; a second determining module configured to determine, according to a host policy table, whether a received data packet is known to a network adapter or unknown to the network adapter; a downlink packet sending module configured to send, based on the determination that the data packet is known to the network adapter, the 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; a packet parsing module configured to parse, based on the determination that the received data packet is unknown to the network adapter, the data packet unknown to the network adapter and generate a new policy entry; and a second policy updating module configured to update the new policy entry into the host policy table and send the new policy entry to the network adapter; a remote server comprising; a packet receiving module configured to receive a data packet that is unknown to the network adapter and sent by the host system; a remote packet parsing module configured to parse the data packet that is unknown to the network adapter and received by the packet receiving module, and generate a new policy entry; a policy entry sending module configured to send the new policy entry to the host system so that the host system simultaneously updates the new policy entry sent by the policy entry sending unit into the host policy table of the host system and the network adapter policy table; a registration command receiving module configured to 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 a protocol parsing table updating module configured to 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