[dpdk-dev] [PATCH] eal: fix set_tsc_freq

2015-07-27 Thread Thomas Monjalon
2015-07-27 13:17, Sergio Gonzalez Monroy: > Fix error where TSC freq is 0. > > The logical OR operator evaluates to 1 if any of its operands is > different than 0. > > Error showed later while initializing PMD: > EAL: TSC frequency is ~0 KHz > > PMD: eth_ixgbe_dev_init(): Hardware

[dpdk-dev] [PATCH] eal: fix set_tsc_freq

2015-07-27 Thread Sergio Gonzalez Monroy
Fix error where TSC freq is 0. The logical OR operator evaluates to 1 if any of its operands is different than 0. Error showed later while initializing PMD: EAL: TSC frequency is ~0 KHz PMD: eth_ixgbe_dev_init(): Hardware Initialization Failure: -30 EAL: Error - exiting with code: 1 Cause:

[dpdk-dev] [PATCH] eal: fix set_tsc_freq

2015-07-27 Thread Mcnamara, John
> -Original Message- > From: Gonzalez Monroy, Sergio > Sent: Monday, July 27, 2015 1:07 PM > To: Mcnamara, John > Subject: [PATCH] eal: fix set_tsc_freq > > The logical OR operator evaluates to 1 if any of its operands is different > than 0. > > Fixes: 040cf8a41187 ("eal: deduplicate