Skip to content

support identity nic #99

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 1, 2025
Merged

Conversation

halfcrazy
Copy link
Contributor

@halfcrazy halfcrazy commented Apr 29, 2025

ethtool -p [duration]

ethtool.go Outdated
@@ -1024,6 +1032,20 @@ func (e *Ethtool) Close() {
unix.Close(e.fd)
}

// Identity the nic with blink duration, if not specify blink infinity
func (e *Ethtool) Identity(intf string, duration *time.Duration) error {
var dur uint32
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we use a default duration instead of zero ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about 60s

@safchain
Copy link
Owner

@halfcrazy could you rebase it. I merged a PR which now conflict with yours.

@halfcrazy
Copy link
Contributor Author

@halfcrazy could you rebase it. I merged a PR which now conflict with yours.

done

@safchain safchain merged commit 445bc2a into safchain:master May 1, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants