Re: [RFC PATCH v3 09/12] net: add support for skbs with unreadable frags

From: Eric Dumazet
Date: Tue Nov 07 2023 - 16:18:01 EST


On Tue, Nov 7, 2023 at 10:05 PM Stanislav Fomichev <sdf@xxxxxxxxxx> wrote:

>
> I don't understand. We require an elaborate setup to receive devmem cmsgs,
> why would some random application receive those?


A TCP socket can receive 'valid TCP packets' from many different sources,
especially with BPF hooks...

Think of a bonding setup, packets being mirrored by some switches or
even from tc.

Better double check than be sorry.

We have not added a 5th component in the 4-tuple lookups, being "is
this socket a devmem one".

A mix of regular/devmem skb is supported.