Skip to content

Commit 0291476

Browse files
Santosh ShuklaThomas Monjalon
authored andcommitted
eal/linux: never check iopl for arm
iopl() syscall not supported in linux-arm/arm64 so always return 0 value. Suggested-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Santosh Shukla <sshukla@mvista.com> Acked-by: Jan Viktorin <viktorin@rehivetech.com> Acked-by: David Marchand <david.marchand@6wind.com> Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
1 parent e277b23 commit 0291476

File tree

1 file changed

+2
-0
lines changed
  • lib/librte_eal/linuxapp/eal

1 file changed

+2
-0
lines changed

lib/librte_eal/linuxapp/eal/eal.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,8 @@ rte_eal_iopl_init(void)
716716
if (iopl(3) != 0)
717717
return -1;
718718
return 0;
719+
#elif defined(RTE_ARCH_ARM) || defined(RTE_ARCH_ARM64)
720+
return 0; /* iopl syscall not supported for ARM/ARM64 */
719721
#else
720722
return -1;
721723
#endif

0 commit comments

Comments
 (0)