Re: [PATCH net,stable-4.0] cdc_ncm: Fix tx_bytes statistics

2015-05-23 Thread Florian Bruhin
* David Miller [2015-05-22 14:34:21 -0400]: > From: Bjørn Mork > Date: Fri, 22 May 2015 13:15:22 +0200 > > > The tx_curr_frame_payload field is u32. When we try to calculate a > > small negative delta based on it, we end up with a positive integer > > close to 2^32 instead. So the tx_bytes poin

Re: [PATCH net,stable-4.0] cdc_ncm: Fix tx_bytes statistics

2015-05-22 Thread Bjørn Mork
On 22 May 2015 19:22:47 CEST, Ben Hutchings wrote: >On Fri, 2015-05-22 at 13:15 +0200, Bjørn Mork wrote: >> The tx_curr_frame_payload field is u32. When we try to calculate a >> small negative delta based on it, we end up with a positive integer >> close to 2^32 instead. So the tx_bytes pointe

Re: [PATCH net,stable-4.0] cdc_ncm: Fix tx_bytes statistics

2015-05-22 Thread David Miller
From: Bjørn Mork Date: Fri, 22 May 2015 13:15:22 +0200 > The tx_curr_frame_payload field is u32. When we try to calculate a > small negative delta based on it, we end up with a positive integer > close to 2^32 instead. So the tx_bytes pointer increases by about > 2^32 for every transmitted frame

Re: [PATCH net,stable-4.0] cdc_ncm: Fix tx_bytes statistics

2015-05-22 Thread Ben Hutchings
On Fri, 2015-05-22 at 13:15 +0200, Bjørn Mork wrote: > The tx_curr_frame_payload field is u32. When we try to calculate a > small negative delta based on it, we end up with a positive integer > close to 2^32 instead. So the tx_bytes pointer increases by about > 2^32 for every transmitted frame. >