×

Deterministic message processing in a direct memory access adapter

  • US 9,158,718 B2
  • Filed: 01/07/2014
  • Issued: 10/13/2015
  • Est. Priority Date: 01/07/2014
  • Status: Active Grant
First Claim
Patent Images

1. An apparatus for deterministic message processing in a direct memory access (DMA) adapter, the DMA adapter utilizing a first-in-first-out (FIFO) message queue for processing packets received by the DMA adapter, the DMA adapter using a head pointer, a tail pointer, a sub-head pointer, and a sub-tail pointer to point to particular packets within the FIFO message queue, the apparatus comprising a computer processor and a computer memory operatively coupled to the computer processor, the computer memory having disposed within it computer program instructions that, when executed by the computer processor, cause the apparatus to carry out the steps of:

  • incrementing from the sub-head pointer, the sub-tail pointer until encountering an out-of-sequence packet;

    consuming packets between the sub-head pointer and the sub-tail pointer including incrementing with the consumption of each packet, the sub-head pointer until determining that the sub-head pointer is equal to the sub-tail pointer;

    in response to determining that the sub-head pointer is equal to the sub-tail pointer, determining whether the head pointer is pointing to the next in-sequence packet;

    if the head pointer is pointing to the next in-sequence packet, resetting the sub-head pointer and the sub-tail pointer to the head pointer; and

    if the head pointer is not pointing to the next in-sequence packet, resetting the sub-head pointer and the sub-tail pointer to the next in-sequence packet.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×