Thread (24 messages) 24 messages, 6 authors, 2020-03-02

Re: [PATCH v4 bpf-next 1/3] bpf: Add get_netns_id helper function for sock_ops

From: Song Liu <song@kernel.org>
Date: 2020-02-25 05:54:33
Also in: bpf

On Mon, Feb 24, 2020 at 8:46 PM Lingpeng Chen [off-list ref] wrote:
Currently 5-tuple(sip+dip+sport+dport+proto) can't identify a
uniq connection because there may be multi net namespace.
For example, there may be a chance that netns a and netns b all
listen on 127.0.0.1:8080 and the client with same port 40782
connect to them. Without netns number, sock ops program
can't distinguish them.
Using bpf_get_netns_id helper to get current connection
netns id to distinguish connections.

Signed-off-by: Lingpeng Chen <redacted>
Acked-by: Song Liu <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help