diff options
Diffstat (limited to 'pfinet/linux-src')
-rw-r--r-- | pfinet/linux-src/include/linux/netdevice.h | 2 | ||||
-rw-r--r-- | pfinet/linux-src/net/core/dev.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/pfinet/linux-src/include/linux/netdevice.h b/pfinet/linux-src/include/linux/netdevice.h index 86f84a90..0b6af203 100644 --- a/pfinet/linux-src/include/linux/netdevice.h +++ b/pfinet/linux-src/include/linux/netdevice.h @@ -317,6 +317,8 @@ struct device /* Semi-private data. Keep it at the end of device struct. */ struct dst_entry *fastpath[NETDEV_FASTROUTE_HMASK+1]; #endif + + int (*change_flags)(struct device *dev, short flags); }; diff --git a/pfinet/linux-src/net/core/dev.c b/pfinet/linux-src/net/core/dev.c index ff16e827..b47c5027 100644 --- a/pfinet/linux-src/net/core/dev.c +++ b/pfinet/linux-src/net/core/dev.c @@ -1452,8 +1452,8 @@ int dev_change_flags(struct device *dev, unsigned flags) dev_set_allmulti(dev, inc); } - if (!ret) - ret = ethernet_change_flags(dev, dev->flags); + if (!ret && dev->change_flags) + ret = dev->change_flags(dev, dev->flags); return ret; } |