mirror of
https://github.com/breeze303/nss-packages.git
synced 2025-12-16 08:44:52 +00:00
There are significant changes between NSS version 11.4.0.5 and 12.1 (12.0.5), that it doesn't really make sense to use it with older firmware (i.e. using mesh releated features). This change will explicitly link building the proper driver and client packages when FW 12.1 or 11.4 is selected, while also backporting patches from 12.4.
36 lines
993 B
Diff
36 lines
993 B
Diff
--- a/portifmgr/nss_portifmgr.c
|
|
+++ b/portifmgr/nss_portifmgr.c
|
|
@@ -187,16 +187,20 @@ drop:
|
|
}
|
|
|
|
/*
|
|
- * nss_portifmgr_get_stats()
|
|
+ * nss_portifmgr_get_stats64()
|
|
* Netdev get stats function to get port stats
|
|
*/
|
|
-static struct rtnl_link_stats64 *nss_portifmgr_get_stats(struct net_device *dev, struct rtnl_link_stats64 *stats)
|
|
+/*
|
|
+ * nss_nlgre_redir_cmn_dev_stats64
|
|
+ * Report packet statistics to linux
|
|
+ */
|
|
+static void nss_portifmgr_get_stats64(struct net_device *dev,
|
|
+ struct rtnl_link_stats64 *stats)
|
|
{
|
|
struct nss_portifmgr_priv *priv = (struct nss_portifmgr_priv *)netdev_priv(dev);
|
|
BUG_ON(priv == NULL);
|
|
|
|
nss_portid_get_stats(priv->if_num, stats);
|
|
- return stats;
|
|
}
|
|
|
|
/*
|
|
@@ -225,7 +229,7 @@ static const struct net_device_ops nss_p
|
|
.ndo_start_xmit = nss_portifmgr_start_xmit,
|
|
.ndo_set_mac_address = eth_mac_addr,
|
|
.ndo_change_mtu = nss_portifmgr_change_mtu,
|
|
- .ndo_get_stats64 = nss_portifmgr_get_stats,
|
|
+ .ndo_get_stats64 = nss_portifmgr_get_stats64,
|
|
};
|
|
|
|
/*
|