Skip to content

Improve maintainability of bpf loader #858

@hzxuzhonghu

Description

@hzxuzhonghu

What would you like to be added:

Now bpf loader is located in https://github.com/kmesh-net/kmesh/tree/main/pkg/bpf, both workload and ads bpf progs and map are there.

It is tricky to find a specific prog type, and also tricky to update it.

We can separate ads and workload progs to their own package to implement a factory interface. In addition, each bpf prog should be isolated from each other for better readability and easier maintainance

Why is this needed:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions