mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-11 05:32:13 -04:00
r8152: support get_msglevel and set_msglevel
Support get_msglevel and set_msglevel. Signed-off-by: Hayes Wang <hayeswang@realtek.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a634782f6c
commit
a5ec27c150
@@ -2852,6 +2852,20 @@ static int rtl8152_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static u32 rtl8152_get_msglevel(struct net_device *dev)
|
||||
{
|
||||
struct r8152 *tp = netdev_priv(dev);
|
||||
|
||||
return tp->msg_enable;
|
||||
}
|
||||
|
||||
static void rtl8152_set_msglevel(struct net_device *dev, u32 value)
|
||||
{
|
||||
struct r8152 *tp = netdev_priv(dev);
|
||||
|
||||
tp->msg_enable = value;
|
||||
}
|
||||
|
||||
static void rtl8152_get_drvinfo(struct net_device *netdev,
|
||||
struct ethtool_drvinfo *info)
|
||||
{
|
||||
@@ -2895,6 +2909,8 @@ static struct ethtool_ops ops = {
|
||||
.get_settings = rtl8152_get_settings,
|
||||
.set_settings = rtl8152_set_settings,
|
||||
.get_link = ethtool_op_get_link,
|
||||
.get_msglevel = rtl8152_get_msglevel,
|
||||
.set_msglevel = rtl8152_set_msglevel,
|
||||
.get_wol = rtl8152_get_wol,
|
||||
.set_wol = rtl8152_set_wol,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user