# US 2025/0168123 A1 · Interrupt handling for received network packets

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

- Number: US 2025/0168123 A1
- Document ID: US20250168123A1
- Status: Published application
- Kind: A1
- Application number: 18/512,647
- Filed: 2023-11-17
- Published: 2025-05-22
- Earliest claimed: 2023-11-17
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Bruce RATCLIFF; Dan VANGOR; Stephen R. VALLEY; Margaret DUBOWSKY; Francis GASSERT; Jerry STEVENS; Richard P. TARCZA; Patricia G. DRIEVER
- Web page: https://patentgrep.com/patent/US20250168123A1

## CPC

- H04L 47/50: Queue scheduling
- H04L 69/22: Parsing or analysis of headers
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Embodiments herein describe techniques for providing interrupts from a shared network adapter to a host operating system or control program. A register can store an interrupt state of the host that indicates whether an interrupt is required. For example, the host may still be busy processed previous received data (e.g., a packet received from a network), which means no interrupt is required. When the host has processed each of the requests from the shared network adapter, the interrupt state in the register can be changed that if any additional data is received, an interrupt is required. Moreover, the register can include a bitmask to indicate which of a plurality of receive data queues has data ready for the host to process.

## Claims

### Claim 1

A method comprising:
identifying, at a shared network adapter, data that should be processed by a host;
storing the data in one of a plurality of receive (RX) data queues, wherein the plurality of RX data queues facilitates data transfer between the shared network adapter and the host;
setting a bitmask to indicate which RX data queue of a plurality of RX data queues stores the data;
checking an interrupt state corresponding to the host; and
determining whether to transmit an interrupt to the host to process the data based on the interrupt state.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
transmitting an interrupt from the shared network adapter to the host when the interrupt state indicates the host is not currently processing data stored in the plurality of RX data queues.

### Claim 3 (depends on 2)

The method of claim 2, further comprising, after determining the interrupt state indicates the host is not currently processing data stored in the plurality of RX data queues:
changing the interrupt state to indicate the host is currently processing data stored in the plurality of RX data queues.

### Claim 4 (depends on 3)

The method of claim 3, further comprising, after changing the interrupt state:
using, by the host, the bitmask to identify the RX data queue that stores the data;
processing the data;
toggling a bit in the bitmask to indicate the data in the RX data queue was processed; and
evaluating the bitmask to determine whether any other bits in the bitmask indicate the shared network adapter has stored new data in one of the plurality of the RX data queues to be processed by the host.

### Claim 5 (depends on 4)

The method of claim 4, further comprising, after determining that none of the other bits in the bitmask indicate the shared network adapter has stored new data in one of the plurality of the RX data queues:
changing the interrupt state to indicate that the host is not currently processing data stored in the plurality of RX data queues and requires an interruption for any new arriving data.

### Claim 6 (depends on 4)

The method of claim 4, further comprising, after determining that at least one of the other bits in the bitmask indicate the shared network adapter has stored new data in one of the plurality of the RX data queues:
using, by the host, the bitmask to identify which one of the plurality of RX data queues stores the new data;
processing the new data, wherein, when processing the new data, the interrupt state remains in a state that indicates the host is currently processing data stored in the plurality of RX data queues; and
toggling a bit in the bitmask to indicate the new data was processed.

### Claim 7 (depends on 1)

The method of claim 1, wherein no interrupt is transmitted from the shared network adapter to the host when the interrupt state indicates the host is currently processing data stored in the plurality of RX data queues.

### Claim 8

A system, comprising:
one or more processors configured to host a plurality of logical partitions or virtual machines;
a shared network adapter configured to provide an interface between the plurality of logical partitions or virtual machines and a network interface card (NIC); and
wherein the shared network adapter is configured to:
identify data that should be processed by the host;
store the data in one of a plurality of receive (RX) data queues, wherein the plurality of RX data queues facilitates data transfer between the shared network adapter and the host;
set a bitmask to indicate which RX data queue of a plurality of RX data queues stores the data;
check an interrupt state corresponding to the host; and
determine whether to transmit an interrupt to the host to process the data based on the interrupt state.

### Claim 9 (depends on 8)

The system of claim 8, wherein the shared network adapter is configured to:
transmit an interrupt from the shared network adapter to the host when the interrupt state indicates the host is not currently processing data stored in the plurality of RX data queues.

### Claim 10 (depends on 9)

The system of claim 9, wherein the shared network adapter is configured to, after determining the interrupt state indicates the host is not currently processing data stored in the plurality of RX data queues:
change the interrupt state to indicate the host is currently processing data stored in the plurality of RX data queues.

### Claim 11 (depends on 10)

The system of claim 10, wherein, the interrupt state is changed, the host is configured to:
use the bitmask to identify the RX data queue that stores the data;
process the data;
toggle a bit in the bitmask to indicate the data in the RX data queue was processed; and
evaluate the bitmask to determine whether any other bits in the bitmask indicate the shared network adapter has stored new data in one of the plurality of the RX data queues to be processed by the host.

### Claim 12 (depends on 11)

The system of claim 11, wherein, after determining that none of the other bits in the bitmask indicate the shared network adapter has stored new data in one of the plurality of the RX data queues, the host is configured to:
change the interrupt state to indicate that the host is not currently processing data stored in the plurality of RX data queues and requires an interruption for any new arriving data.

### Claim 13 (depends on 11)

The system of claim 11, wherein, after determining that at least one of the other bits in the bitmask indicate the shared network adapter has stored new data in one of the plurality of the RX data queues, the host is configured to:
use the bitmask to identify which one of the plurality of RX data queues stores the new data;
process the new data, wherein, when processing the new data, the interrupt state remains in a state that indicates the host is currently processing data stored in the plurality of RX data queues; and
toggle a bit in the bitmask to indicate the new data was processed.

### Claim 14 (depends on 8)

The system of claim 8, wherein no interrupt is transmitted from the shared network adapter to the host when the interrupt state indicates the host is currently processing data stored in the plurality of RX data queues.

### Claim 15

A computer program product comprising:
a computer readable storage medium having computer readable program code embodied therewith, the computer readable program code executable by one or more computer processors to perform an operation, the operation comprising:
identifying, at a shared network adapter, data that should be processed by a host;
storing the data in one of a plurality of receive (RX) data queues, wherein the plurality of RX data queues facilitates data transfer between the shared network adapter and the host;
setting a bitmask to indicate which RX data queue of a plurality of RX data queues stores the data;
checking an interrupt state corresponding to the host; and
determining whether to transmit an interrupt to the host to process the data based on the interrupt state.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the operation further comprises:
transmitting an interrupt from the shared network adapter to the host when the interrupt state indicates the host is not currently processing data stored in the plurality of RX data queues.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the operation further comprises, after determining the interrupt state indicates the host is not currently processing data stored in the plurality of RX data queues:
changing the interrupt state to indicate the host is currently processing data stored in the plurality of RX data queues.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the operation further comprises, after changing the interrupt state:
using, by the host, the bitmask to identify the RX data queue that stores the data;
processing the data;
toggling a bit in the bitmask to indicate the data in the RX data queue was processed; and
evaluating the bitmask to determine whether any other bits in the bitmask indicate the shared network adapter has stored new data in one of the plurality of the RX data queues to be processed by the host.

### Claim 19 (depends on 16)

The computer program product of claim 16, wherein the operation further comprises, after determining that none of the other bits in the bitmask indicate the shared network adapter has stored new data in one of the plurality of the RX data queues:
changing the interrupt state to indicate that the host is not currently processing data stored in the plurality of RX data queues and requires an interruption for any new arriving data.

### Claim 20 (depends on 16)

The computer program product of claim 16, wherein the operation further comprises, after determining that at least one of the other bits in the bitmask indicate the shared network adapter has stored new data in one of the plurality of the RX data queues:
using, by the host, the bitmask to identify which one of the plurality of RX data queues stores the new data;
processing the new data, wherein, when processing the new data, the interrupt state remains in a state that indicates the host is currently processing data stored in the plurality of RX data queues; and
toggling a bit in the bitmask to indicate the new data was processed.
