Re: [PATCH, net-next] i40e: avoid 64-bit division where possible

2017-10-17 Thread Arnd Bergmann
On Tue, Oct 17, 2017 at 5:14 PM, Jeff Kirsher wrote: > On Tue, 2017-10-17 at 12:23 +0200, Arnd Bergmann wrote: >> The new bandwidth calculation causes a link error on 32-bit >> architectures, like >> >> ERROR: "__aeabi_uldivmod"

Re: [PATCH, net-next] i40e: avoid 64-bit division where possible

2017-10-17 Thread Arnd Bergmann
On Tue, Oct 17, 2017 at 5:14 PM, Jeff Kirsher wrote: > On Tue, 2017-10-17 at 12:23 +0200, Arnd Bergmann wrote: >> The new bandwidth calculation causes a link error on 32-bit >> architectures, like >> >> ERROR: "__aeabi_uldivmod" [drivers/net/ethernet/intel/i40e/i40e.ko] >> undefined! >

Re: [PATCH, net-next] i40e: avoid 64-bit division where possible

2017-10-17 Thread Jeff Kirsher
On Tue, 2017-10-17 at 12:23 +0200, Arnd Bergmann wrote: > The new bandwidth calculation causes a link error on 32-bit > architectures, like > > ERROR: "__aeabi_uldivmod" [drivers/net/ethernet/intel/i40e/i40e.ko] > undefined! > > The problem is the max_tx_rate calculation that uses 64-bit

Re: [PATCH, net-next] i40e: avoid 64-bit division where possible

2017-10-17 Thread Jeff Kirsher
On Tue, 2017-10-17 at 12:23 +0200, Arnd Bergmann wrote: > The new bandwidth calculation causes a link error on 32-bit > architectures, like > > ERROR: "__aeabi_uldivmod" [drivers/net/ethernet/intel/i40e/i40e.ko] > undefined! > > The problem is the max_tx_rate calculation that uses 64-bit

[PATCH, net-next] i40e: avoid 64-bit division where possible

2017-10-17 Thread Arnd Bergmann
The new bandwidth calculation causes a link error on 32-bit architectures, like ERROR: "__aeabi_uldivmod" [drivers/net/ethernet/intel/i40e/i40e.ko] undefined! The problem is the max_tx_rate calculation that uses 64-bit integers. This is not really necessary since the numbers are in MBit/s so

[PATCH, net-next] i40e: avoid 64-bit division where possible

2017-10-17 Thread Arnd Bergmann
The new bandwidth calculation causes a link error on 32-bit architectures, like ERROR: "__aeabi_uldivmod" [drivers/net/ethernet/intel/i40e/i40e.ko] undefined! The problem is the max_tx_rate calculation that uses 64-bit integers. This is not really necessary since the numbers are in MBit/s so