On Fri, Apr 2, 2021 at 10:12 PM Cong Wang wrote:
>
> On Wed, Mar 31, 2021 at 11:01 PM John Fastabend
> wrote:
> > This 'else if' is always true if above is false right? Would be
> > impler and clearer IMO as,
> >
> >if (used <= 0) {
> > if (!copied)
> >
On Wed, Mar 31, 2021 at 11:01 PM John Fastabend
wrote:
> This 'else if' is always true if above is false right? Would be
> impler and clearer IMO as,
>
>if (used <= 0) {
> if (!copied)
> copied = used;
>
Cong Wang wrote:
> From: Cong Wang
>
> This is similar to tcp_read_sock(), except we do not need
> to worry about connections, we just need to retrieve skb
> from UDP receive queue.
>
> Note, the return value of ->read_sock() is unused in
> sk_psock_verdict_data_ready(), and UDP still does not
>
From: Cong Wang
This is similar to tcp_read_sock(), except we do not need
to worry about connections, we just need to retrieve skb
from UDP receive queue.
Note, the return value of ->read_sock() is unused in
sk_psock_verdict_data_ready(), and UDP still does not
support splice() due to lack of ->