# Re: \[PATCH v5 bpf-next 00/11\] net: Add support for XDP in egress path

- From: David Ahern \<hidden\>
- Date: 2020-05-19 00:02:08 
- List: netdev
- Page: https://ratatoskr.run/netdev/2020/05/11169779
- Thread: https://ratatoskr.run/netdev/2020/05/11169196/t.md

```text
On 5/18/20 3:06 PM, Daniel Borkmann wrote:
> So given we neither call this hook on the skb path, nor XDP_TX nor
> AF_XDP's TX
> path, I was wondering also wrt the discussion with John if it makes
> sense to
> make this hook a property of the devmap _itself_, for example, to have a
> default
> BPF prog upon devmap creation or a dev-specific override that is passed
> on map
> update along with the dev. At least this would make it very clear where
> this is
> logically tied to and triggered from, and if needed (?) would provide
> potentially
> more flexibility on specifiying BPF progs to be called while also
> solving your
> use-case.
> 

You lost me on the 'property of the devmap.' The programs need to be per
netdevice, and devmap is an array of devices. Can you elaborate?
```
