Skip to content

Commit d5c99e0

Browse files
author
Aaron Kramer
committed
Merge pull request torvalds#175 in PROCESSOR-SDK/processor-sdk-linux from PLSDK-2941 to processor-sdk-linux-4.19.y
* commit '118465638a4ff65896dcf3014d8a55ddaa8a86d8': vlan: add set_dump() ethtool api
2 parents 903e38b + 1184656 commit d5c99e0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

net/8021q/vlan_dev.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,11 +770,23 @@ static int vlan_dev_get_iflink(const struct net_device *dev)
770770
return real_dev->ifindex;
771771
}
772772

773+
static int vlan_set_dump(struct net_device *dev,
774+
struct ethtool_dump *dump)
775+
{
776+
struct net_device *real_dev = vlan_dev_priv(dev)->real_dev;
777+
778+
if (!real_dev->ethtool_ops->set_dump)
779+
return -EOPNOTSUPP;
780+
781+
return real_dev->ethtool_ops->set_dump(real_dev, dump);
782+
}
783+
773784
static const struct ethtool_ops vlan_ethtool_ops = {
774785
.get_link_ksettings = vlan_ethtool_get_link_ksettings,
775786
.get_drvinfo = vlan_ethtool_get_drvinfo,
776787
.get_link = ethtool_op_get_link,
777788
.get_ts_info = vlan_ethtool_get_ts_info,
789+
.set_dump = vlan_set_dump,
778790
};
779791

780792
static const struct net_device_ops vlan_netdev_ops = {

0 commit comments

Comments
 (0)