mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 08:15:17 +07:00
f625aa9be8
Implement LINKMODES_GET netlink request to get link modes related information provided by ETHTOOL_GLINKSETTINGS and ETHTOOL_GSET ioctl commands. This request provides supported, advertised and peer advertised link modes, autonegotiation flag, speed and duplex. LINKMODES_GET request can be used with NLM_F_DUMP (without device identification) to request the information for all devices in current network namespace providing the data. Signed-off-by: Michal Kubecek <mkubecek@suse.cz> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
18 lines
401 B
C
18 lines
401 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#ifndef _LINUX_ETHTOOL_NETLINK_H_
|
|
#define _LINUX_ETHTOOL_NETLINK_H_
|
|
|
|
#include <uapi/linux/ethtool_netlink.h>
|
|
#include <linux/ethtool.h>
|
|
#include <linux/netdevice.h>
|
|
|
|
#define __ETHTOOL_LINK_MODE_MASK_NWORDS \
|
|
DIV_ROUND_UP(__ETHTOOL_LINK_MODE_MASK_NBITS, 32)
|
|
|
|
enum ethtool_multicast_groups {
|
|
ETHNL_MCGRP_MONITOR,
|
|
};
|
|
|
|
#endif /* _LINUX_ETHTOOL_NETLINK_H_ */
|