# US 2004/0017819 A1 · Receive queue descriptor pool

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

- Number: US 2004/0017819 A1
- Document ID: US20040017819A1
- Status: Published application
- Kind: A1
- Application number: 10/200,189
- Filed: 2002-07-23
- Published: 2004-01-29
- Earliest claimed: 2002-07-23
- Assignees: Mellanox Technologies, Ltd.
- Inventors: Michael Kagan; Dafna Levenvirth; Yossi Leybovitch
- Web page: https://patentgrep.com/patent/US20040017819A1

## CPC

- H04L 49/9047: including multiple buffers, e.g. buffer pools
- H04L 49/90: Buffering arrangements
- H04L 49/901: using storage descriptor, e.g. read or write pointers
- H04L 49/9031: {Wraparound memory, e.g. overrun or underrun detection}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method for network communication includes providing a pool of descriptors to be shared among a plurality of transport service instances used in communicating over a network, each of the descriptors in the pool including a scatter list indicating a buffer that is available in a local memory. When a message containing data to be pushed to the local memory is received over the network on one of transport service instances, one of the descriptors is read from the pool. The data contained in the message are written to the buffer indicated by the scatter list included in the one of the descriptors.

## Claims

### Claim 1

A method for network communication, comprising:
providing a pool of descriptors to be shared among a plurality of transport service instances used in communicating over a network, each of the descriptors in the pool comprising a scatter list indicating a buffer that is available in a local memory;
receiving a message over the network on one of transport service instances, the message comprising data to be pushed to the local memory; and
responsive to receiving the message, reading one of the descriptors from the pool, and writing the data comprised in the message to the buffer indicated by the scatter list comprised in the one of the descriptors.

### Claim 2 (depends on 1)

A method according to claim 1, wherein providing the pool of descriptors comprises writing the descriptors to the local memory using a host processor, and wherein receiving the message comprises receiving the message at a network adapter, which reads the one of the descriptors and writes the data to the buffer for processing by the host processor.

### Claim 3 (depends on 2)

A method according to claim 2, wherein the network comprises a switch fabric, and wherein the network adapter comprises a channel adapter.

### Claim 4 (depends on 2)

A method according to claim 2, wherein writing the data comprises, upon completion of writing the data to the buffer, submitting a completion report from the channel adapter to the host processor, the completion report including a pointer to the scatter list for use by the host processor in processing the data.

### Claim 5 (depends on 1)

A method according to claim 1, wherein providing the pool of descriptors comprises providing multiple pools of descriptors, each belonging to a respective group of the transport service instances, and wherein reading the one of the descriptors comprises determining the group to which the one of the transport service instances belongs, and reading the one of the descriptors from the pool belonging to the group.

### Claim 6 (depends on 1)

A method according to claim 1, wherein providing the pool of descriptors comprises writing the descriptors to a circular list having a head and a tail, and wherein reading the one of the descriptors comprises selecting the one of the descriptors from the head of the list.

### Claim 7 (depends on 6)

A method according to claim 6, wherein selecting the one of the descriptors comprises comparing the head and the tail of the list, and abstaining from writing the data to the buffer in the local memory if the head and tail coincide.

### Claim 8 (depends on 1)

A method according to claim 1, wherein receiving the message comprises receiving one or more packets having payloads comprising the data.

### Claim 9 (depends on 8)

A method according to claim 8, wherein the network comprises a switch fabric, and wherein the transport service instances comprises queue pairs, and wherein the message comprises a send message conveyed over the fabric by a remote requester.

### Claim 10 (depends on 9)

A method according to claim 9, wherein each of the descriptors corresponds to a work queue element in a receive queue of one of the queue pairs.

### Claim 11

A network adapter, comprising:
a network interface, adapted to receive a message over a network on one of a plurality of transport service instances, the message comprising data to be pushed to a local memory;
a host interface, adapted to be coupled to a host processor and to the local memory associated therewith; and
message processing circuitry, coupled between the network interface and the host interface, which circuitry is adapted, responsive to receiving the message at the network interface, to read a descriptor from a pool of descriptors that is shared among the plurality of transport service instances, each of the descriptors in the pool comprising a scatter list indicating a buffer that is available in the local memory, and to write the data comprised in the message via the host interface to the buffer indicated by the scatter list comprised in the descriptor.

### Claim 12 (depends on 11)

An adapter according to claim 11, wherein the descriptors in the pool are prepared in the local memory by the host processor, and wherein the message processing circuitry is adapted to read the descriptors from the pool via the host interface.

### Claim 13 (depends on 12)

An adapter according to claim 12, wherein the message processing circuitry is adapted, upon completion of writing the data to the buffer, to submit a completion report via the host interface to the host processor, the completion report including a pointer to the scatter list for use by the host processor in processing the data.

### Claim 14 (depends on 11)

An adapter according to claim 11, wherein the network comprises a switch fabric, and wherein the network adapter comprises a channel adapter.

### Claim 15 (depends on 11)

An adapter according to claim 11, wherein the pool of descriptors is one of multiple pools of descriptors, each belonging to a respective group of the transport service instances, and wherein the message processing circuitry is adapted to determine the group to which the one of the transport service instances belongs, and to read the descriptor from the pool belonging to the group.

### Claim 16 (depends on 11)

An adapter according to claim 11, wherein the descriptors are entered in the pool in a circular list having a head and a tail, and wherein the message processing circuitry is adapted to read the descriptor from the head of the list.

### Claim 17 (depends on 16)

An adapter according to claim 16, wherein the message processing circuitry is adapted to compare the head and the tail of the list, and to abstain from writing the data to the buffer in the local memory if the head and tail coincide.

### Claim 18 (depends on 11)

An adapter according to claim 11, wherein the message comprises one or more packets having payloads comprising the data.

### Claim 19 (depends on 18)

An adapter according to claim 18, wherein the network comprises a switch fabric, and wherein the transport service instances comprises queue pairs, and wherein the message comprises a send message conveyed over the fabric by a remote requester.

### Claim 20 (depends on 19)

An adapter according to claim 19, wherein the descriptor corresponds to a work queue element in a receive queue of one of the queue pairs.
