Thread (9 messages) 9 messages, 3 authors, 2020-04-01

Re: [PATCHv5 bpf-next 0/5] Add bpf_sk_assign eBPF helper

From: Alexei Starovoitov <hidden>
Date: 2020-03-30 20:47:02
Also in: bpf

On Sun, Mar 29, 2020 at 3:53 PM Joe Stringer [off-list ref] wrote:
Introduce a new helper that allows assigning a previously-found socket
to the skb as the packet is received towards the stack, to cause the
stack to guide the packet towards that socket subject to local routing
configuration. The intention is to support TProxy use cases more
directly from eBPF programs attached at TC ingress, to simplify and
streamline Linux stack configuration in scale environments with Cilium.
Applied.
Patches 4 and 5 had warnings:
progs/test_sk_assign.c:79:32: warning: ordered comparison between
pointer and integer ('void *' and '__u32' (aka 'unsigned int'))
        if ((void *)tuple + tuple_len > skb->data_end)
            ~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~

I fixed them up.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help