summaryrefslogtreecommitdiffhomepage
path: root/doctor/ethtool/ethtool.go
blob: 40f39cc21b49a6e99bb34bb9595af06792ef3afb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (c) Tailscale Inc & contributors
// SPDX-License-Identifier: BSD-3-Clause

// Package ethtool provides a doctor.Check that prints diagnostic information
// obtained from the 'ethtool' utility on the current system.
package ethtool

import (
	"context"

	"tailscale.com/types/logger"
)

// Check implements the doctor.Check interface.
type Check struct{}

func (Check) Name() string {
	return "ethtool"
}

func (Check) Run(_ context.Context, logf logger.Logf) error {
	return ethtoolImpl(logf)
}