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

Avoid spurious XDP program reloads and dup eBPF map table entries #625

Closed vinaykul closed 2 years ago

vinaykul commented 2 years ago

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind design /kind feature /kind bug /kind cleanup /kind documentation

What this PR does / why we need it: Load agent/transit XDP programs tries to initialize and load program even though it has already been loaded. This avoids creation of spurious eBPF map entries by avoiding load (without unload) if XDP program has already been loaded.

Which issue(s) this PR fixes: Arktos issues 1360.

Fixes #

Special notes for your reviewer: Tested scaleup with kube-up several times and scaleout 2x2.

Does this PR introduce a user-facing change?: