From b7dacbe7a426ac219f325c9559088174c23e5d08 Mon Sep 17 00:00:00 2001 From: Jianping Liu Date: Thu, 28 Nov 2024 11:43:46 +0800 Subject: [PATCH] drivers/net,wangxun: fix compile error The commit 91dc13667eb892102f543a1dfb0856870484f21e have change change the struct of ethtool_ops, which will cause compile error. Signed-off-by: Jianping Liu --- drivers/net/ethernet/wangxun/ngbe/ngbe_kcompat.h | 8 ++++++++ drivers/net/ethernet/wangxun/txgbe/txgbe_kcompat.h | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/drivers/net/ethernet/wangxun/ngbe/ngbe_kcompat.h b/drivers/net/ethernet/wangxun/ngbe/ngbe_kcompat.h index 0063df1f305a..ce253e3259c3 100644 --- a/drivers/net/ethernet/wangxun/ngbe/ngbe_kcompat.h +++ b/drivers/net/ethernet/wangxun/ngbe/ngbe_kcompat.h @@ -7727,4 +7727,12 @@ _kc_xdp_rxq_info_reg(struct xdp_rxq_info *xdp_rxq, struct net_device *dev, _kc_xdp_rxq_info_reg(xdp_rxq, dev, queue_index, napi_id) #endif /* HAVE_XDP_RXQ_INFO_REG_3_PARAMS */ +#ifndef HAVE_ETHTOOL_EXTENDED_RINGPARAMS +#define HAVE_ETHTOOL_EXTENDED_RINGPARAMS +#endif + +#ifndef HAVE_ETHTOOL_COALESCE_EXTACK +#define HAVE_ETHTOOL_COALESCE_EXTACK +#endif + #endif /* _KCOMPAT_H_ */ diff --git a/drivers/net/ethernet/wangxun/txgbe/txgbe_kcompat.h b/drivers/net/ethernet/wangxun/txgbe/txgbe_kcompat.h index 256c717ee80c..e717459f5530 100644 --- a/drivers/net/ethernet/wangxun/txgbe/txgbe_kcompat.h +++ b/drivers/net/ethernet/wangxun/txgbe/txgbe_kcompat.h @@ -7813,4 +7813,12 @@ _kc_bpf_warn_invalid_xdp_action(__maybe_unused struct net_device *dev, #endif /* HAVE_XDP_SUPPORT */ #endif /* HAVE_NETDEV_PROG_XDP_WARN_ACTION */ +#ifndef HAVE_ETHTOOL_EXTENDED_RINGPARAMS +#define HAVE_ETHTOOL_EXTENDED_RINGPARAMS +#endif + +#ifndef HAVE_ETHTOOL_COALESCE_EXTACK +#define HAVE_ETHTOOL_COALESCE_EXTACK +#endif + #endif /* _TXGBE_KYLIN_H__ */