4 fresh identifier stats64_fn_wrap = "bp_" ## stats64_fn;
7 struct net_device_ops OPS@p = {
8 +#if LINUX_VERSION_IS_GEQ(4,11,0)
9 .ndo_get_stats64 = stats64_fn,
11 + .ndo_get_stats64 = stats64_fn_wrap,
16 identifier r.stats64_fn_wrap;
17 identifier r.stats64_fn;
19 void stats64_fn(...) {...}
20 +#if LINUX_VERSION_IS_LESS(4,11,0)
21 +struct rtnl_link_stats64 *
22 +stats64_fn_wrap(struct net_device *dev,
23 + struct rtnl_link_stats64 *stats)
25 + stats64_fn(dev, stats);