Method and device for saving DMA channel resources in high-speed intelligent network card/DPU
A smart network card, high-speed technology, applied in multi-programming devices, resource allocation, energy-saving computing, etc., can solve the problems of increasing logic complexity and corresponding costs, consuming CPU resources, occupying logic resources, etc., to reduce costs and save CPU Resources, the effect of saving logic resources
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0054] The smart network card / DPU parses the packets entering the network card from the optical port; for example, it parses the Ethernet packets and parses out quintuple or user-defined fields.
[0055]Matching is performed by port and quintuple or other user-defined rules; for example, the incoming data from port 1 is marked as port number 1, the incoming packet from port 2 is marked as port number 2, and the user-defined source IP address is marked as port number 2. For matching, 192.168.0.* is marked as queue 2, and for user-defined source IP addresses, 192.168.1.* is marked as queue 3;
[0056] Add the metadata of the port and queue number at the end of the matched message,
[0057] In order to avoid accidental repetition of port and queue numbers and data packets, the metadata format for defining ports and queue numbers is as follows:
[0058]
[0059] where aabbcc is the identifier;
[0060] The port number is 1 byte, which is determined by the port number of the n...
example 1
[0067] Example 1: port number 01, queue number 0002, random number 0305,
[0068] The first 8 bytes of the added message are aabbcc01 00020305
[0069] 8 prime numbers V (hexadecimal) are
[0070] aa (170) corresponds to prime number V0: 4bc5d4f3
[0071] bb(187) corresponds to prime number V1: 42dff19f
[0072] cc(204) corresponds to prime number V2: 1ee35bb
[0073] 01(1) corresponds to prime number V3: 3a907251
[0074] 00 (0) corresponds to prime number V4: 1fb0dfc9
[0075] 02 (51) corresponds to prime number V5: 7b720269
[0076] 03 (03) corresponds to prime number V6: 6850364b
[0077] 05 (05) corresponds to prime number V7: 02b3b673
[0078] According to the formula R=(R<<1)+V
[0079] R0=265aa7bb
[0080] R1=(R0 << 1)+V1 =(4bc5d4f3<< 1) + 42dff19f = da6b9b85
[0081] R2=(R1 << 1)+V2 =( da6b9b85<< 1)+ 1ee35bb = d3c36cc5
[0082] R3=(R2 << 1)+V3 = (d3c36cc5<<1)+ 3a907251= e2174bdb
[0083] R4=(R3 << 1)+V4=( e2174bdb << 1)+ 1fb0dfc9=e3df777f
[0084] R5=(R4 ...
example 2
[0089] Example 2: port number 02, queue number 0008, random number 0305,
[0090] The first 16 bytes of the added message are aabbcc0200080305
[0091] 8 prime numbers V (hexadecimal) are
[0092] aa (170) corresponds to prime number V0: 4bc5d4f3
[0093] bb(187) corresponds to prime number V1: 42dff19f
[0094] cc(204) corresponds to prime number V2: 1eec35bb
[0095] 02 (2) corresponds to prime number V3: 56cb4033
[0096] 00 (0) corresponds to prime number V4: 1fb0dfc9
[0097] 08 (8) corresponds to prime number V5: 45039065
[0098] 03 (3) corresponds to prime number V6: 6850364b
[0099] 05 (5) corresponds to prime number V7: 02b3b673
[0100] According to the formula R=(R<<1)+V
[0101] R0=4bc5d4f3
[0102] R1=(R0 << 1)+V1 =(4bc5d4f3<< 1) + 42dff19f = da6b9b85
[0103] R2=(R1 << 1)+V2 =( da6b9b85<< 1)+ 1eec35bb = d3c36cc5
[0104] R3=(R2 << 1)+V3 = (d3c36cc5<<1)+ 56cb4033= fe5219bd
[0105] R4=(R3 << 1)+V4=( fe5219bd << 1)+ 1fb0dfc9=1c551343
[0106] R5=(R4 ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


