ipdk-io / ipdk

Infrastructure Programmer Development Kit (IPDK) is an open source, vendor agnostic framework of drivers and APIs for infrastructure offload and management that runs on a CPU, IPU, DPU or switch.
Apache License 2.0
185 stars 68 forks source link

does ipdk stratum support direct meter? #387

Open ad-c2-ip58n4 opened 1 year ago

ad-c2-ip58n4 commented 1 year ago

I would like to use the direct meter feature of IPDK Stratum, but I could not find the relevant code in any branch. Is there any development plan for this feature? Also, the direct meter defined in the P4Runtime protocol does not support meter types such as bps or pps. How should this be handled?

ffoulkes commented 10 months ago

We're currently downstreaming changes from the Stratum parent project and integrating them into the IPDK fork. This includes the addition of direct meter support in P4InfoManager. The pending updates are in the stratum-changes branch.

The team working on the Intel IPU E2100 have defined two vendor-specific meter types, PacketModMeter and DirectPacketModMeter, modeled on RFC 2697. The proposed additions to P4Info have been implemented in the IPDK forks of P4Runtime and Stratum.

Does this answer your questions?