Re: [PATCH] net: sock: simplify tw proto registration

2021-03-10 Thread Tonghao Zhang
On Wed, Mar 10, 2021 at 10:42 AM Alexander Duyck wrote: > > On Tue, Mar 9, 2021 at 5:48 PM Tonghao Zhang wrote: > > > > On Wed, Mar 10, 2021 at 1:39 AM Alexander Duyck > > wrote: > > > > > > On Mon, Mar 8, 2021 at 7:15 PM wrote: > > > > > > > > From: Tonghao Zhang > > > > > > > > Introduce a n

Re: [PATCH] net: sock: simplify tw proto registration

2021-03-09 Thread Alexander Duyck
On Tue, Mar 9, 2021 at 5:48 PM Tonghao Zhang wrote: > > On Wed, Mar 10, 2021 at 1:39 AM Alexander Duyck > wrote: > > > > On Mon, Mar 8, 2021 at 7:15 PM wrote: > > > > > > From: Tonghao Zhang > > > > > > Introduce a new function twsk_prot_init, inspired by > > > req_prot_init, to simplify the "p

Re: [PATCH] net: sock: simplify tw proto registration

2021-03-09 Thread Tonghao Zhang
On Wed, Mar 10, 2021 at 1:39 AM Alexander Duyck wrote: > > On Mon, Mar 8, 2021 at 7:15 PM wrote: > > > > From: Tonghao Zhang > > > > Introduce a new function twsk_prot_init, inspired by > > req_prot_init, to simplify the "proto_register" function. > > > > Signed-off-by: Tonghao Zhang > > --- >

Re: [PATCH] net: sock: simplify tw proto registration

2021-03-09 Thread Alexander Duyck
On Mon, Mar 8, 2021 at 7:15 PM wrote: > > From: Tonghao Zhang > > Introduce a new function twsk_prot_init, inspired by > req_prot_init, to simplify the "proto_register" function. > > Signed-off-by: Tonghao Zhang > --- > net/core/sock.c | 44 > 1 file

[PATCH] net: sock: simplify tw proto registration

2021-03-08 Thread xiangxia . m . yue
From: Tonghao Zhang Introduce a new function twsk_prot_init, inspired by req_prot_init, to simplify the "proto_register" function. Signed-off-by: Tonghao Zhang --- net/core/sock.c | 44 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a