drivers/net,wangxun: fix compile error

The commit 91dc13667e have change change
the struct of ethtool_ops, which will cause compile error.

Signed-off-by: Jianping Liu <frankjpliu@tencent.com>
This commit is contained in:
Jianping Liu 2024-11-28 11:43:46 +08:00
parent b38c5bb0b9
commit b7dacbe7a4
2 changed files with 16 additions and 0 deletions

View File

@ -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_ */

View File

@ -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__ */