[PATCH net-next 3/7] tcp: __tcp_hdrlen() helper

2016-02-09 Thread Craig Gallek
From: Craig Gallek tcp_hdrlen is wasteful if you already have a pointer to struct tcphdr. This splits the size calculation into a helper function that can be used if a struct tcphdr is already available. Signed-off-by: Craig Gallek --- include/linux/tcp.h | 7 ++- 1 file changed, 6 inserti

Re: [PATCH net-next 3/7] tcp: __tcp_hdrlen() helper

2016-02-04 Thread Eric Dumazet
On Thu, 2016-02-04 at 10:35 -0500, Craig Gallek wrote: > From: Craig Gallek > > tcp_hdrlen is wasteful if you already have a pointer to struct tcphdr. > This splits the size calculation into a helper function that can be > used if a struct tcphdr is already available. > > Signed-off-by: Craig Ga

[PATCH net-next 3/7] tcp: __tcp_hdrlen() helper

2016-02-04 Thread Craig Gallek
From: Craig Gallek tcp_hdrlen is wasteful if you already have a pointer to struct tcphdr. This splits the size calculation into a helper function that can be used if a struct tcphdr is already available. Signed-off-by: Craig Gallek --- include/linux/tcp.h | 7 ++- 1 file changed, 6 inserti