diff options
author | Stephen Hemminger <shemminger@osdl.org> | 2005-05-29 14:13:47 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-05-29 14:13:47 -0700 |
commit | d8a33ac435c43a1a404b2ec560ef1d1536710c36 (patch) | |
tree | 04359c09e0731e9c33a8c2dd80cc69404e0dde60 /net/core/ethtool.c | |
parent | 45b30105e7231b70bb855923dbca443ee3ba44c3 (diff) | |
download | kernel_samsung_tuna-d8a33ac435c43a1a404b2ec560ef1d1536710c36.zip kernel_samsung_tuna-d8a33ac435c43a1a404b2ec560ef1d1536710c36.tar.gz kernel_samsung_tuna-d8a33ac435c43a1a404b2ec560ef1d1536710c36.tar.bz2 |
[BRIDGE]: features change notification
Resend of earlier patch (no changes) from Catalin used to provide
device feature change notification.
Signed-off-by: Catalin BOIE <catab at umbrella.ro>
Acked-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/ethtool.c')
-rw-r--r-- | net/core/ethtool.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/net/core/ethtool.c b/net/core/ethtool.c index f05fde9..252bfc6 100644 --- a/net/core/ethtool.c +++ b/net/core/ethtool.c @@ -682,6 +682,7 @@ int dev_ethtool(struct ifreq *ifr) void __user *useraddr = ifr->ifr_data; u32 ethcmd; int rc; + int old_features; /* * XXX: This can be pushed down into the ethtool_* handlers that @@ -703,6 +704,8 @@ int dev_ethtool(struct ifreq *ifr) if ((rc = dev->ethtool_ops->begin(dev)) < 0) return rc; + old_features = dev->features; + switch (ethcmd) { case ETHTOOL_GSET: rc = ethtool_get_settings(dev, useraddr); @@ -712,7 +715,6 @@ int dev_ethtool(struct ifreq *ifr) break; case ETHTOOL_GDRVINFO: rc = ethtool_get_drvinfo(dev, useraddr); - break; case ETHTOOL_GREGS: rc = ethtool_get_regs(dev, useraddr); @@ -801,6 +803,10 @@ int dev_ethtool(struct ifreq *ifr) if(dev->ethtool_ops->complete) dev->ethtool_ops->complete(dev); + + if (old_features != dev->features) + netdev_features_change(dev); + return rc; ioctl: |