Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename direction parameter used to define hook point for attaching eBPF programs #100

Open
jniesz opened this issue Aug 17, 2022 · 0 comments

Comments

@jniesz
Copy link
Contributor

jniesz commented Aug 17, 2022

We need to rename "direction" to something more appropriate to handle generic use-cases such as non-network related programs or when a program attaches to tracepoints, kprobes, uprobes, etc...

func (c *NFConfigs) VerifyAndStartXDPRootProgram(ifaceName, direction string)
func (c *NFConfigs) VerifyAndStartTCRootProgram(ifaceName, direction string)
func (c *NFConfigs) PushBackAndStartBPF(bpfProg *models.BPFProgram, ifaceName, direction string)
func (c *NFConfigs) DownloadAndStartBPFProgram(element *list.Element, ifaceName, direction string)
func (c *NFConfigs) StopNRemoveAllBPFPrograms(ifaceName, direction string)
func (c *NFConfigs) VerifyNUpdateBPFProgram(bpfProg *models.BPFProgram, ifaceName, direction string)
func (c *NFConfigs) InsertAndStartBPFProgram(bpfProg *models.BPFProgram, ifaceName, direction string)
func (c *NFConfigs) StopRootProgram(ifaceName, direction string)
func (c *NFConfigs) RemoveMissingBPFProgramsInConfig(bpfProg models.L3afBPFPrograms, ifaceName, direction string)
func (c *NFConfigs) AddAndStartBPF(bpfProg *models.BPFProgram, ifaceName string, direction string)
func (c *NFConfigs) DeleteProgramsOnInterfaceHelper(e *list.Element, ifaceName string, direction string, bpfList *list.List)

func (c *NFConfigs) VerifyAndStartXDPRootProgram(ifaceName, direction string) error {

func (c *NFConfigs) VerifyAndStartTCRootProgram(ifaceName, direction string) error {

func (c *NFConfigs) PushBackAndStartBPF(bpfProg *models.BPFProgram, ifaceName, direction string) error {

func (c *NFConfigs) DownloadAndStartBPFProgram(element *list.Element, ifaceName, direction string) error {

func (c *NFConfigs) StopNRemoveAllBPFPrograms(ifaceName, direction string) error {

func (c *NFConfigs) VerifyNUpdateBPFProgram(bpfProg *models.BPFProgram, ifaceName, direction string) error {

func (c *NFConfigs) InsertAndStartBPFProgram(bpfProg *models.BPFProgram, ifaceName, direction string) error {

func (c *NFConfigs) StopRootProgram(ifaceName, direction string) error {

func (c *NFConfigs) RemoveMissingBPFProgramsInConfig(bpfProg models.L3afBPFPrograms, ifaceName, direction string) error {

func (c *NFConfigs) AddAndStartBPF(bpfProg *models.BPFProgram, ifaceName string, direction string) error {

func (c *NFConfigs) DeleteProgramsOnInterfaceHelper(e *list.Element, ifaceName string, direction string, bpfList *list.List) error {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant