# Re: \[PATCH bpf-next v6 2/6\] bpf: add redirect\_peer helper

- From: David Ahern \<hidden\>
- Date: 2020-10-12 02:50:17 
- List: netdev
- Page: https://ratatoskr.run/netdev/2020/10/7748871
- Thread: https://ratatoskr.run/netdev/2020/10/7748839/t.md

```text
On 10/11/20 10:16 AM, Daniel Borkmann wrote:
>>
>> This is awesome results and great work Daniel! :-)

+1

>>
>> I wonder if we can also support this from XDP, which can also native
>> redirect into veth.  Originally I though we could add the peer netdev
>> in the devmap, but AFAIK Toke showed me that this was not possible.
> 
> I think it should be possible with similar principle. What was the
> limitation
> that you ran into with devmap for XDP?

Should just need an API to set the namespace of the redirect device -
something that devmap can be extended to include now.

```
