CentaurusInfra / mizar

Mizar – Experimental, High Scale and High Performance Cloud Network https://mizar.readthedocs.io
https://mizar.readthedocs.io
GNU General Public License v2.0
112 stars 50 forks source link

Send pod_label_value and namespace_label_value into packet_metadata xdp table #476

Closed Hong-Chang closed 3 years ago

Hong-Chang commented 3 years ago

What does this PR do?

  1. Add rpc method to extract pod_label_value and namespace_label_value from endpoint and send the packet_metadata to daemon
  2. Add trn_cli functions to receive packet_metadata for daemon
  3. Add xdp table and corresponding structures for packet_metadata
  4. Input packet_metadata to xdp table

Why is it needed? After the pr, pod_label_value and namespace_label_value are stored in xdp table for future retrieving.

How was this tested? I did manual e2e test. The label values were generated from operator and eventually observed in xdp table.

Are there any user facing / API changes? No.

vinaykul commented 3 years ago

Can you please add a description to the PR outlining the changes? Let's try and use the arktos template. For example see PR: https://github.com/CentaurusInfra/arktos/pull/1082 The key things to add:

[Hong] Added description.

Hong-Chang commented 3 years ago

Since change is pretty much, will close this one and replace by a new one.