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 #477

Closed Hong-Chang closed 3 years ago

Hong-Chang commented 3 years ago

What does this PR do?

  1. 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 added unit tests and 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.