Re: [Patch net] igb: pass the correct maxlen for eth_get_headlen()

2015-04-24 Thread Jeff Kirsher
On Wed, 2015-04-22 at 10:45 -0700, Cong Wang wrote: > The second parameter of eth_get_headlen() is the length of > the frame buffer, not the header length of skb. > > Cc: Jeff Kirsher > Signed-off-by: Cong Wang > --- > drivers/net/ethernet/intel/igb/igb_main.c | 4 +++- > 1 file changed, 3 inse

Re: [Intel-wired-lan] [Patch net] igb: pass the correct maxlen for eth_get_headlen()

2015-04-23 Thread Cong Wang
On Thu, Apr 23, 2015 at 12:45 PM, Alexander Duyck wrote: > On 04/23/2015 12:30 PM, Cong Wang wrote: >> >> (Off-topic...) >> >> On Wed, Apr 22, 2015 at 4:23 PM, Cong Wang wrote: >>> >>> The code looks correct to me now, except it is suspicious skb->len >>> is not updated after skb_copy_to_linear_d

Re: [Intel-wired-lan] [Patch net] igb: pass the correct maxlen for eth_get_headlen()

2015-04-23 Thread Alexander Duyck
On 04/23/2015 12:30 PM, Cong Wang wrote: (Off-topic...) On Wed, Apr 22, 2015 at 4:23 PM, Cong Wang wrote: The code looks correct to me now, except it is suspicious skb->len is not updated after skb_copy_to_linear_data() while skb->tail is advanced already. I need to think more before submittin

Re: [Patch net] igb: pass the correct maxlen for eth_get_headlen()

2015-04-23 Thread Cong Wang
(Off-topic...) On Wed, Apr 22, 2015 at 4:23 PM, Cong Wang wrote: > > The code looks correct to me now, except it is suspicious skb->len > is not updated after skb_copy_to_linear_data() while skb->tail is > advanced already. I need to think more before submitting a patch. I feel like we need the

Re: [Patch net] igb: pass the correct maxlen for eth_get_headlen()

2015-04-23 Thread Cong Wang
On Thu, Apr 23, 2015 at 11:40 AM, Alexander Duyck wrote: > On 04/23/2015 11:06 AM, Cong Wang wrote: >> On Wed, Apr 22, 2015 at 8:40 PM, Alexander Duyck >> wrote: >>> On 04/22/2015 04:23 PM, Cong Wang wrote: On Wed, Apr 22, 2015 at 3:34 PM, Alexander Duyck wrote: > On 04/22/2015 02:

Re: [Patch net] igb: pass the correct maxlen for eth_get_headlen()

2015-04-23 Thread Alexander Duyck
On 04/23/2015 11:06 AM, Cong Wang wrote: > On Wed, Apr 22, 2015 at 8:40 PM, Alexander Duyck > wrote: >> On 04/22/2015 04:23 PM, Cong Wang wrote: >>> On Wed, Apr 22, 2015 at 3:34 PM, Alexander Duyck >>> wrote: On 04/22/2015 02:56 PM, Cong Wang wrote: > On Wed, Apr 22, 2015 at 2:42 PM, Ale

Re: [Patch net] igb: pass the correct maxlen for eth_get_headlen()

2015-04-23 Thread Cong Wang
On Wed, Apr 22, 2015 at 8:40 PM, Alexander Duyck wrote: > On 04/22/2015 04:23 PM, Cong Wang wrote: >> On Wed, Apr 22, 2015 at 3:34 PM, Alexander Duyck >> wrote: >>> On 04/22/2015 02:56 PM, Cong Wang wrote: On Wed, Apr 22, 2015 at 2:42 PM, Alexander Duyck wrote: > On 04/22/2015 01:3

Re: [Patch net] igb: pass the correct maxlen for eth_get_headlen()

2015-04-22 Thread Alexander Duyck
On 04/22/2015 04:23 PM, Cong Wang wrote: > On Wed, Apr 22, 2015 at 3:34 PM, Alexander Duyck > wrote: >> On 04/22/2015 02:56 PM, Cong Wang wrote: >>> On Wed, Apr 22, 2015 at 2:42 PM, Alexander Duyck >>> wrote: On 04/22/2015 01:33 PM, Cong Wang wrote: > First, make sure you don't miss the

Re: [Patch net] igb: pass the correct maxlen for eth_get_headlen()

2015-04-22 Thread Cong Wang
On Wed, Apr 22, 2015 at 3:34 PM, Alexander Duyck wrote: > On 04/22/2015 02:56 PM, Cong Wang wrote: >> On Wed, Apr 22, 2015 at 2:42 PM, Alexander Duyck >> wrote: >>> On 04/22/2015 01:33 PM, Cong Wang wrote: First, make sure you don't miss the TSIP case right above: The frag starting

Re: [Patch net] igb: pass the correct maxlen for eth_get_headlen()

2015-04-22 Thread Alexander Duyck
On 04/22/2015 02:56 PM, Cong Wang wrote: > On Wed, Apr 22, 2015 at 2:42 PM, Alexander Duyck > wrote: >> On 04/22/2015 01:33 PM, Cong Wang wrote: >>> First, make sure you don't miss the TSIP case right above: >>> >>> The frag starting pointer and its size are advanced by: >>> >>> skb_frag_size_sub(

Re: [Patch net] igb: pass the correct maxlen for eth_get_headlen()

2015-04-22 Thread Cong Wang
On Wed, Apr 22, 2015 at 2:42 PM, Alexander Duyck wrote: > On 04/22/2015 01:33 PM, Cong Wang wrote: >> First, make sure you don't miss the TSIP case right above: >> >> The frag starting pointer and its size are advanced by: >> >> skb_frag_size_sub(frag, IGB_TS_HDR_LEN); >> ... >> va += IGB_TS_HDR_L

Re: [Patch net] igb: pass the correct maxlen for eth_get_headlen()

2015-04-22 Thread Alexander Duyck
On 04/22/2015 01:33 PM, Cong Wang wrote: > On Wed, Apr 22, 2015 at 1:21 PM, Alexander Duyck > wrote: >> On 04/22/2015 01:14 PM, Cong Wang wrote: >>> On Wed, Apr 22, 2015 at 12:43 PM, Alexander Duyck >>> wrote: On 04/22/2015 10:45 AM, Cong Wang wrote: > The second parameter of eth_get_hea

Re: [Patch net] igb: pass the correct maxlen for eth_get_headlen()

2015-04-22 Thread Cong Wang
On Wed, Apr 22, 2015 at 1:21 PM, Alexander Duyck wrote: > On 04/22/2015 01:14 PM, Cong Wang wrote: >> On Wed, Apr 22, 2015 at 12:43 PM, Alexander Duyck >> wrote: >>> On 04/22/2015 10:45 AM, Cong Wang wrote: The second parameter of eth_get_headlen() is the length of the frame buffer, not

Re: [Patch net] igb: pass the correct maxlen for eth_get_headlen()

2015-04-22 Thread Alexander Duyck
On 04/22/2015 01:14 PM, Cong Wang wrote: > On Wed, Apr 22, 2015 at 12:43 PM, Alexander Duyck > wrote: >> On 04/22/2015 10:45 AM, Cong Wang wrote: >>> The second parameter of eth_get_headlen() is the length of >>> the frame buffer, not the header length of skb. >>> >>> Cc: Jeff Kirsher >>> Signed-

Re: [Patch net] igb: pass the correct maxlen for eth_get_headlen()

2015-04-22 Thread Cong Wang
On Wed, Apr 22, 2015 at 12:43 PM, Alexander Duyck wrote: > On 04/22/2015 10:45 AM, Cong Wang wrote: >> The second parameter of eth_get_headlen() is the length of >> the frame buffer, not the header length of skb. >> >> Cc: Jeff Kirsher >> Signed-off-by: Cong Wang >> --- >> drivers/net/ethernet/

Re: [Patch net] igb: pass the correct maxlen for eth_get_headlen()

2015-04-22 Thread Alexander Duyck
On 04/22/2015 10:45 AM, Cong Wang wrote: > The second parameter of eth_get_headlen() is the length of > the frame buffer, not the header length of skb. > > Cc: Jeff Kirsher > Signed-off-by: Cong Wang > --- > drivers/net/ethernet/intel/igb/igb_main.c | 4 +++- > 1 file changed, 3 insertions(+), 1

[Patch net] igb: pass the correct maxlen for eth_get_headlen()

2015-04-22 Thread Cong Wang
The second parameter of eth_get_headlen() is the length of the frame buffer, not the header length of skb. Cc: Jeff Kirsher Signed-off-by: Cong Wang --- drivers/net/ethernet/intel/igb/igb_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ig