# US 2025/0219957 A1 · System and method for adaptive generic receive offload

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0219957 A1
- Document ID: US20250219957A1
- Status: Published application
- Kind: A1
- Application number: 19/080,574
- Filed: 2025-03-14
- Published: 2025-07-03
- Earliest claimed: 2023-01-12
- Assignees: Enfabrica Corporation
- Applicants: Enfabrica Corporation
- Inventors: Shrijeet Mukherjee; Carlo Contavalli; Shimon Muller; Ariel Hendel; Gurjeet Singh; Rochan Sankar
- Web page: https://patentgrep.com/patent/US20250219957A1

## CPC

- H04L 47/2483: involving identification of individual flows
- H04L 47/41: by acting on aggregated flows or links
- H04L 47/621: {Individual queue per connection or flow, e.g. per VC}
- H04L 49/901: using storage descriptor, e.g. read or write pointers
- H04L 49/9015: for supporting a linked list
- H04L 49/9047: including multiple buffers, e.g. buffer pools
- H04L 49/9068: {in the network interface card}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

An adaptive generic receive offload (A-GRO) system and method are disclosed. In some embodiments, the system comprises a host including a host protocol stack and a host memory, and a network interface card that is communicatively connectable to the host. The A-GRO system is configured to: receive a packet from a network, parse the packet to a header and a payload, classify and map the packet into a particular flow based on contexts associated with a plurality of flows and the header, and move the header and the payload to separate queues associated with the particular flow in the host memory, without holding and stalling the packet in hardware of the NIC. By maintain packet coherence information including header chains, the A-GRO allows the host to skip processing the packets between the first and last headers in a GRO aggregation. The A-GRO system also improves mis-ordering packet handling.

## Claims

### Claim 1

A method comprising:
providing a host comprising a host protocol stack and a host memory;
providing a network interface card (NIC) configured to receive a plurality of packets from a network and pass the plurality of packets to the host;
receiving, at the host protocol stack, a packet of the plurality of packets from the NIC, the packet comprising a header and a payload;
identifying, by the host protocol stack and using a receive completion list, a packet sequence to which the packet belongs;
determining, by the host protocol stack and using an aggregation chain for the packet sequence, that the packet is an in-between packet and not a first packet or a last packet in the packet sequence; and
adding, by the host protocol stack and in response to the determination, the payload to a payload aggregation for the packet sequence without processing the header.

### Claim 2 (depends on 1)

The method of claim 1, further comprising processing the packet, by the host protocol stack, once the host protocol stack receives the packet and without waiting for other packets in the packet sequence to be received.

### Claim 3 (depends on 1)

The method of claim 1, further comprising skipping, by the host protocol stack, a processing of headers for all in-between packets in the packet sequence to optimize latency.

### Claim 4 (depends on 3)

The method of claim 3, wherein at least a portion of the in-between packets are received by the host protocol stack out of order.

### Claim 5 (depends on 1)

The method of claim 1, wherein the packet is received at the host without being stored in hardware of the NIC.

### Claim 6

A method comprising:
providing a host comprising a host protocol stack and a host memory;
providing a network interface card (NIC) configured to receive a plurality of packets from a network and pass the plurality of packets to the host;
receiving, at the host protocol stack, a packet of the plurality of packets from the NIC, the packet associated with a flow from a plurality of flows for the network;
comparing, by the host protocol stack, a sequence number of the packet with sequence numbers for a plurality of payload aggregations associated with the flow, each payload aggregation comprising one or more payloads from network packets associated with the flow;
determining, by the host protocol stack and based on the comparison, that a payload for the packet belongs to a payload aggregation from the plurality of payload aggregations; and
adjusting, by the host protocol stack and in response to the determination, at least one of a first sequence number or a last sequence number for the payload aggregation.

### Claim 7 (depends on 6)

The method of claim 6, wherein the payload of the packet overlaps the payload aggregation.

### Claim 8 (depends on 6)

The method of claim 6, further comprising:
receiving, at the host protocol stack, an additional packet associated with the flow;
determining, by the host protocol stack, that a payload for the additional packet does not belong to any existing payload aggregation from the plurality of payload aggregations; and
performing, by the host protocol stack, at least one of:
assigning the payload for the additional packet to a new payload aggregation for the flow; or
flushing the plurality of payload aggregations associated with the flow.

### Claim 9 (depends on 6)

The method of claim 6, wherein the plurality of payload aggregations are arranged according to sequence numbers covered by each respective payload aggregation.

### Claim 10 (depends on 6)

The method of claim 6, further comprising forming a new packet that includes payloads from the payload aggregation.

### Claim 11

A system comprising:
a host comprising a host protocol stack and a host memory; and
a network interface card (NIC) configured to receive a plurality of packets from a network and pass the plurality of packets to the host,
wherein the host protocol stack is configured to:
receive a packet of the plurality of packets from the NIC, the packet comprising a header and a payload;
identify, using a receive completion list, a packet sequence to which the packet belongs;
determine, using an aggregation chain for the packet sequence, that the packet is an in-between packet and not a first packet or a last packet in the packet sequence; and
adding, in response to the determination, the payload to a payload aggregation for the packet sequence without processing the header.

### Claim 12 (depends on 11)

The system of claim 11, wherein the host protocol stack is further configured to process the packet once the host protocol stack receives the packet and without waiting for other packets in the packet sequence to be received.

### Claim 13 (depends on 11)

The system of claim 11, wherein the host protocol stack is further configured to skip a processing of headers for all in-between packets in the packet sequence to optimize latency.

### Claim 14 (depends on 13)

The system of claim 13, wherein at least a portion of the in-between packets are received by the host protocol stack out of order.

### Claim 15 (depends on 11)

The system of claim 11, wherein the packet is received at the host without being stored in hardware of the NIC.

### Claim 16

A system comprising:
a host comprising a host protocol stack and a host memory; and
a network interface card (NIC) configured to receive a plurality of packets from a network and pass the packets to the host,
wherein the host protocol stack is configured to:
receive a packet of the plurality of packets from the NIC, the packet associated with a flow from a plurality of flows for the network;
compare a sequence number of the packet with sequence numbers for a plurality of payload aggregations associated with the flow, each payload aggregation comprising one or more payloads from network packets associated with the flow;
determine, based on the comparison, that a payload for the packet belongs to a payload aggregation from the plurality of payload aggregations; and
adjust, in response to the determination, at least one of a first sequence number or a last sequence number for the payload aggregation.

### Claim 17 (depends on 16)

The system of claim 16, wherein the payload of the packet overlaps the payload aggregation.

### Claim 18 (depends on 16)

The system of claim 16, wherein the host protocol stack is configured to:
receive an additional packet associated with the flow;
determine that a payload for the additional packet does not belong to any existing payload aggregation from the plurality of payload aggregations; and
at least one of:
assign the payload for the additional packet to a new payload aggregation for the flow; or
flush the plurality of payload aggregations associated with the flow.

### Claim 19 (depends on 16)

The system of claim 16, wherein the plurality of payload aggregations are arranged according to sequence numbers covered by each respective payload aggregation.

### Claim 20 (depends on 16)

The system of claim 16, wherein the host protocol stack is further configured to form a new packet that includes payloads from the payload aggregation.
