From a4ffb5a4298042dffe2126653049883e78c79d5f Mon Sep 17 00:00:00 2001 From: Huang Cun Date: Tue, 13 Aug 2024 17:19:32 +0800 Subject: [PATCH] sssnic: adapting compilation for tencentos Signed-off-by: Huang Cun --- .../3snic/sssnic/kcompat/sss_kcompat_opencloudos.h | 10 +++++++++- .../3snic/sssnic/kcompat/sss_kcompat_tencentos.h | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/3snic/sssnic/kcompat/sss_kcompat_opencloudos.h b/drivers/net/ethernet/3snic/sssnic/kcompat/sss_kcompat_opencloudos.h index 73d78e0d6b93..2cc8121b1be8 100644 --- a/drivers/net/ethernet/3snic/sssnic/kcompat/sss_kcompat_opencloudos.h +++ b/drivers/net/ethernet/3snic/sssnic/kcompat/sss_kcompat_opencloudos.h @@ -3,8 +3,16 @@ #ifdef __OPENCLOUDOS__ +#ifndef HAVE_ETHTOOL_COALESCE_EXTACK +#define HAVE_ETHTOOL_COALESCE_EXTACK +#endif + +#ifndef HAVE_ETHTOOL_RINGPARAM_EXTACK +#define HAVE_ETHTOOL_RINGPARAM_EXTACK +#endif + /* for opencloudos-8.6 */ #endif -#endif \ No newline at end of file +#endif diff --git a/drivers/net/ethernet/3snic/sssnic/kcompat/sss_kcompat_tencentos.h b/drivers/net/ethernet/3snic/sssnic/kcompat/sss_kcompat_tencentos.h index c1b5309000a6..fdd757b8c8b5 100644 --- a/drivers/net/ethernet/3snic/sssnic/kcompat/sss_kcompat_tencentos.h +++ b/drivers/net/ethernet/3snic/sssnic/kcompat/sss_kcompat_tencentos.h @@ -3,8 +3,16 @@ #ifdef __TENCENTOS__ +#ifndef HAVE_ETHTOOL_COALESCE_EXTACK +#define HAVE_ETHTOOL_COALESCE_EXTACK +#endif + +#ifndef HAVE_ETHTOOL_RINGPARAM_EXTACK +#define HAVE_ETHTOOL_RINGPARAM_EXTACK +#endif + /* for tencentos 2.4 2209.1 / 3.1 2209.3 */ #endif -#endif \ No newline at end of file +#endif