14 ndevexp->min_mtu = e1;
15 ndevexp->max_mtu@p = e2;
27 + ndevexp->min_mtu = 0;
28 ndevexp->max_mtu@p = MAX;
37 struct net_device_ops OPS@p = { ... };
39 @script:python depends on r@
49 if first_ops == 0 or ln < first_ops:
57 if not(first_ops == ln):
58 cocci.include_match(False)
67 ndevexp->min_mtu = e1;
68 ndevexp->max_mtu = e2;
76 +#if LINUX_VERSION_IS_LESS(4,10,0)
77 + static int __change_mtu(struct net_device *ndev, int new_mtu)
79 + if (new_mtu < e1 || new_mtu > e2)
81 + ndev->mtu = new_mtu;
86 struct net_device_ops OPS = {
94 struct net_device_ops OPS = {
95 +#if LINUX_VERSION_IS_LESS(4,10,0)
96 + .ndo_change_mtu = __change_mtu,