PD#170491: net: xfrm: enable compat xfrm syscall
When using 32bit user space and 64bit kernel in ARM64 platform,
we do not need to disable compat syscall, since there is struct size
difference between user space and kernel space.
This will fix error in xfrm test cases of VtsKernelNetTest.
Change-Id: Ifd6c1f5e678138286678d5c119c0efa42d5b3a59
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
struct xfrm_policy *pol = NULL;
#ifdef CONFIG_COMPAT
+#ifndef CONFIG_AMLOGIC_MODIFY
if (in_compat_syscall())
return -EOPNOTSUPP;
+#endif
#endif
if (!optval && !optlen) {
int type, err;
#ifdef CONFIG_COMPAT
+#ifndef CONFIG_AMLOGIC_MODIFY
if (in_compat_syscall())
return -EOPNOTSUPP;
+#endif
#endif
type = nlh->nlmsg_type;