Re: [PATCH v3 bpf-next 0/5] bpf: Add support for XDP programs in DEVMAP entries

2020-05-29 Thread Toke Høiland-Jørgensen
David Ahern writes: > Implementation of Daniel's proposal for allowing DEVMAP entries to be > a device index, program fd pair. > > Programs are run after XDP_REDIRECT and have access to both Rx device > and Tx device. Found one more nit apart from the changes you already said you'd do for v4. So

[PATCH v3 bpf-next 0/5] bpf: Add support for XDP programs in DEVMAP entries

2020-05-28 Thread David Ahern
Implementation of Daniel's proposal for allowing DEVMAP entries to be a device index, program fd pair. Programs are run after XDP_REDIRECT and have access to both Rx device and Tx device. v3 - renamed struct to bpf_devmap_val - used offsetofend to check for expected map size, modification of To