Re: [PATCH net-next 0/2] New getsockopt option to retrieve socket cookie

2017-04-08 Thread David Miller
From: Chenbo Feng Date: Wed, 5 Apr 2017 19:00:54 -0700 > In the current kernel socket cookie implementation, there is no simple > and direct way to retrieve the socket cookie based on file descriptor. A > process mat need to get it from sock fd if it want to correlate with > sock_diag output or

Re: [PATCH net-next 0/2] New getsockopt option to retrieve socket cookie

2017-04-06 Thread Alexei Starovoitov
On Wed, Apr 05, 2017 at 07:00:54PM -0700, Chenbo Feng wrote: > From: Chenbo Feng > > > In the current kernel socket cookie implementation, there is no simple > and direct way to retrieve the socket cookie based on file descriptor. A > process mat need to get it from sock fd if it want to correla

[PATCH net-next 0/2] New getsockopt option to retrieve socket cookie

2017-04-05 Thread Chenbo Feng
From: Chenbo Feng In the current kernel socket cookie implementation, there is no simple and direct way to retrieve the socket cookie based on file descriptor. A process mat need to get it from sock fd if it want to correlate with sock_diag output or use a bpf map with new socket cookie function