ixgbe/base: rework link speed branches
authorOuyang Changchun <changchun.ouyang@intel.com>
Thu, 12 Feb 2015 12:00:57 +0000 (20:00 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 27 Apr 2015 08:05:59 +0000 (10:05 +0200)
commit5c77a5f35dc1056c5bedb454ab3c8d4784bb8fc3
tree4ac30358f65637740fbf9bf3f214c56ebaf7f5ea
parent927318e854e805b6c5aab6152c3d5da41fbe5ad2
ixgbe/base: rework link speed branches

Use switch-case statement to replace if-else statement.

Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com>
Acked-by: Jijiang Liu <jijiang.liu@intel.com>
lib/librte_pmd_ixgbe/ixgbe/ixgbe_common.c