Level two first-in-first-out transmission
A circuit device includes an interface circuit configured to generate a first network packet and a second network packet. The interface circuit includes preemption circuitry and transmission circuitry. The preemption circuitry is configured to cause the first network packet to be generated as a set of packet fragments that includes a first packet fragment and a second packet fragment and cause the second network packet to be transmitted between the first packet fragment and the second packet fragment. The transmission circuitry is configured to transmit the first packet fragment of the first network packet, the second network packet, and the second packet fragment of the second network packet.
1 . A circuit device comprising:
an interface circuit configured to generate a first network packet and a second network packet, wherein the interface circuit includes:
preemption circuitry configured to:
cause the first network packet to be generated as a set of packet fragments that includes a first packet fragment and a second packet fragment, wherein the first packet fragment includes a value that indicates a count of how many packet fragments are in the set of packet fragments of the first network packet; and
cause the first packet fragment to be transmitted, the second network packet to be transmitted following transmission of the first packet fragment, and the second packet fragment to be transmitted following transmission of the second network packet; and
transmission circuitry configured to transmit the first packet fragment of the first network packet, the second network packet, and the second packet fragment of the second network packet.
2 . The circuit device of claim 1 , wherein the preemption circuitry is configured to cause the first network packet to be divided based on at least one of: a size of the first network packet relative to the second network packet or a priority of the first network packet relative to the second network packet.
3 . The circuit device of claim 1 further comprising a processor core coupled to the interface circuit, wherein:
the processor core is configured to provide a code that specifies to preempt the first network packet; and
the preemption circuitry is configured to cause the first network packet to be divided based on the code.
4 . The circuit device of claim 3 , wherein the processor core is configured to provide, to the interface circuit, a first set of data associated with the first network packet and a second set of data associated with the second network packet.
5 . The circuit device of claim 1 , wherein the first packet fragment includes a value that indicates that the first packet fragment is a fragment.
6 . The circuit device of claim 1 , wherein the first packet fragment includes a value that indicates a sequence number of the first packet fragment.
7 . The circuit device of claim 1 , wherein the interface circuit includes a cyclical redundancy check circuit configured to cause the first packet fragment to include a cyclical redundancy check value that indicates that the first packet fragment is a fragment.
8 . A circuit device comprising:
a buffer;
a processor coupled to the buffer and configured to:
store, in the buffer, a first set of data and a second set of data; and
provide a code that specifies to preempt a network packet, the code not being part of any network packet; and
an interface circuit coupled to the buffer and configured to generate a first network packet associated with the first set of data and a second network packet associated with the second set of data, wherein the interface circuit includes:
preemption circuitry configured to:
cause the first network packet to be divided in response to the code, wherein the first network packet is generated as a set of packet fragments that includes a first packet fragment and a second packet fragment; and
cause the second network packet to be transmitted between the first packet fragment and the second packet fragment; and
transmission circuitry configured to transmit the first packet fragment of the first network packet, the second network packet, and the second packet fragment of the second network packet.
9 . The circuit device of claim 8 , wherein the preemption circuitry is configured to cause the first network packet to be divided based on at least one of: a size of the first network packet relative to the second network packet or a priority of the first network packet relative to the second network packet.
10 . The circuit device of claim 8 , wherein the first packet fragment includes a value that indicates that the first packet fragment is a fragment.
11 . The circuit device of claim 8 , wherein the interface circuit includes a cyclical redundancy check circuit configured to cause the first packet fragment to include a cyclical redundancy check value that indicates that the first packet fragment is a fragment.