OSDN Git Service

ethtool: add timestamping related string sets
authorMichal Kubecek <mkubecek@suse.cz>
Fri, 27 Mar 2020 23:01:53 +0000 (00:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 05:32:36 +0000 (22:32 -0700)
commitf76510b458a52023e96b3a700a97ffb526de17dc
tree5653a7b2a348b90c47629dcdd66e433a6bc445ce
parent6c5bc8fe4e1915da8296a665bd742dbe34de02f0
ethtool: add timestamping related string sets

Add three string sets related to timestamping information:

  ETH_SS_SOF_TIMESTAMPING: SOF_TIMESTAMPING_* flags
  ETH_SS_TS_TX_TYPES:      timestamping Tx types
  ETH_SS_TS_RX_FILTERS:    timestamping Rx filters

These will be used for TIMESTAMP_GET request.

v2: avoid compiler warning ("enumeration value not handled in switch")
    in net_hwtstamp_validate()

v3: omit dash in Tx type names ("one-step-*" -> "onestep-*"), suggested by
    Richard Cochran

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/ethtool.h
include/uapi/linux/net_tstamp.h
net/core/dev_ioctl.c
net/ethtool/common.c
net/ethtool/common.h
net/ethtool/strset.c