# US 10,958,597 B2 · General purpose ring buffer handling in a network controller

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

- Number: US 10,958,597 B2
- Document ID: US10958597B2
- Status: Granted
- Kind: B2
- Application number: 16/284,900
- Filed: 2019-02-25
- Published: 2020-08-27
- Granted: 2021-03-23
- Earliest claimed: 2019-02-25
- Assignees: Cisco Technology, Inc.
- Applicants: Cisco Technology, Inc.
- Inventors: Tanjore K Suresh; Ravikiran Kaidala Lakshman; Deepak Srinivas Mayya
- Web page: https://patentgrep.com/patent/US10958597B2

## CPC

- G06F 3/0656: {Data buffering arrangements}
- G06F 3/061: {Improving I/O performance}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- H04L 47/6225: {Fixed service order, e.g. Round Robin}
- H04L 49/555: {Error detection}
- H04L 49/90: Buffering arrangements
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The disclosed technology relates to a process for general-purpose ring buffer handling in a network controller. Specifically, general purpose ring buffers are used in software queue on both the host domain and the network controller to carry out user-defined protocols. The protocols define the relationship of the ring buffers in the host domain and the network controller domain (e.g. how data is moved and processed). The protocols minimize interruptions to the network controller. Furthermore, the implementation of ring buffers in the network controller domain also provides additional resources to the host domain for carrying out the user-defined protocols.

## Claims

### Claim 1

A method comprising:
initiating a plurality of software queues comprising:
a first ring buffer on a first device, and
a second ring buffer on a second device, wherein the second ring buffer corresponds to the first ring buffer; and
executing a protocol using the plurality of software queues, the first ring buffer and the second ring buffer, wherein the protocol comprises a mapping that defines a relationship between the first ring buffer and the second ring buffer, wherein the protocol specifies a type of data defined for the first ring buffer and the second ring buffer, wherein the protocol is executed and completed without interrupting the second device and the second device is only interrupted once the protocol is completed, wherein the protocol defines one or more parameters associated with the second ring buffer, wherein the one or more parameters comprise a descriptor size associated with the second ring buffer, wherein the second ring buffer comprises a shadow ring buffer corresponding to and paired with the first ring buffer.

### Claim 2 (depends on 1)

The method of claim 1, wherein the plurality of software queues further comprises a plurality of ring buffers on the first device, wherein the plurality of ring buffers is arranged sequentially, and wherein a base address for each of the plurality of ring buffers is offset by a size of information associated with the plurality of ring buffers.

### Claim 3 (depends on 1)

The method of claim 1, wherein the plurality of software queues further comprises a plurality of ring buffers on the second device, wherein a base address for each of the plurality of ring buffers is assigned by the second device and stored in memory after the initiating of the first ring buffer on the first device.

### Claim 4 (depends on 1)

The method of claim 1, wherein the protocol further defines how data associated with the data type is to be processed by at least one of the plurality of software queues.

### Claim 5 (depends on 4)

The method of claim 4, wherein the execution of the protocol begins when data of the data type is posted to the first ring buffer.

### Claim 6 (depends on 1)

The method of claim 1, further comprising scheduling ring buffers in a round-robin fashion.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
detecting an error for one of the first ring buffer or the second ring buffer during the execution of the protocol; and
providing an error state for the one of the first ring buffer or the second ring buffer based on the detected error, wherein the error state instructs the one of the first ring buffer or the second ring buffer to be skipped when it is up to be next scheduled.

### Claim 8 (depends on 1)

The method of claim 1, wherein the mapping defines whether data should be moved from the first ring buffer to the second ring buffer or from the second ring buffer to the first ring buffer.

### Claim 9 (depends on 1)

The method of claim 1, wherein the mapping includes:
instructions for the first ring buffer and the second ring buffer to request one or more processes to be performed on data posted within the plurality of software queues, and
an expected output for the data once the processing of the data is completed.

### Claim 10

A non-transitory computer-readable medium comprising instructions which, when executed by one or more processors, cause the one or more processors to:
initiate a plurality of software queue, comprising:
a first ring buffer on a host domain, and
a second ring buffer on a separate domain, wherein the second ring buffer corresponds to the first ring buffer; and
execute a protocol using the plurality of software queues, the first ring buffer and the second ring buffer, wherein the protocol comprises a mapping that defines a relationship between the first ring buffer and the second ring buffer, wherein the protocol specifies a type of data defined for the first ring buffer and the second ring buffer, wherein the protocol is executed and completed without interrupting the second device and the second device is only interrupted once the protocol is completed, wherein the protocol defines one or more parameters associated with the second ring buffer, wherein the one or more parameters comprise a descriptor size associated with the second ring buffer, wherein the second ring buffer comprises a shadow ring buffer corresponding to and paired with the first ring buffer.

### Claim 11 (depends on 10)

The non-transitory computer-readable medium of claim 10, wherein the plurality of software queues further comprises a plurality of ring buffers on the first device, wherein the plurality of ring buffers is arranged sequentially, and wherein a base address for each of the plurality of ring buffers is offset by a size of information associated with the plurality of ring buffers.

### Claim 12 (depends on 10)

The non-transitory computer-readable medium of claim 10, wherein the plurality of software queues further comprises a plurality of ring buffers on the second device, wherein a base address for each of the plurality of ring buffers is assigned by the second device and stored in memory after the initiating of the first ring buffer on the first device.

### Claim 13 (depends on 10)

The non-transitory computer-readable medium of claim 10, wherein the protocol further defines how data associated with the data type is to be processed by at least one of the plurality of software queues.

### Claim 14 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein the instructions, when executed by the one or more processors, further cause the one or more processors to:
detect an error for one of the first ring buffer or the second ring buffer during the execution of the protocol; and
provides an error state for the one of the first ring buffer or the second ring buffer based on the detected error, wherein the error state instructs the one of the first ring buffer or the second ring buffer to be skipped when it is up to be next scheduled.

### Claim 15

A system comprising:
a processor; and
a non-transitory computer-readable medium storing instructions that, when executed by the processor, cause the system to:
initiate a plurality of software queue, comprising:
a first ring buffer on a host domain, and
a second ring buffer on a separate domain, wherein the second ring buffer corresponds to the first ring buffer; and
execute a protocol using the plurality of software queues, the first ring buffer and the second ring buffer, wherein the protocol comprises a mapping that defines a relationship between the first ring buffer and the second ring buffer, wherein the protocol specifies a type of data defined for the first ring buffer and the second ring buffer, wherein the protocol is executed and completed without interrupting the second device and the second device is only interrupted once the protocol is completed, wherein the protocol defines one or more parameters associated with the second ring buffer, wherein the one or more parameters comprise a descriptor size associated with the second ring buffer, wherein the second ring buffer comprises a shadow ring buffer corresponding to and paired with the first ring buffer.

### Claim 16 (depends on 15)

The system of claim 15, wherein the plurality of software queues further comprises a plurality of ring buffers on the first device, wherein the plurality of ring buffers is arranged sequentially, and wherein a base address for each of the plurality of ring buffers is offset by a size of information associated with the plurality of ring buffers.

### Claim 17 (depends on 16)

The system of claim 16, wherein the protocol further defines how data associated with the data type is to be processed by at least one of the plurality of software queues.

### Claim 18 (depends on 17)

The system of claim 17, wherein the instructions, when executed by the processor, further cause the system to:
detect an error for one of the first ring buffer or the second ring buffer during the execution of the protocol; and
provide an error state for the one of the first ring buffer or the second ring buffer based on the detected error, wherein the error state instructs the one of the first ring buffer or the second ring buffer to be skipped when it is up to be next scheduled.

### Claim 19 (depends on 15)

The system of claim 15, wherein the plurality of software queues further comprises a plurality of ring buffers on the second device, wherein a base address for each of the plurality of ring buffers is assigned by the second device and stored in memory after the initiating of the first ring buffer on the first device.
