[go] syscall: enable netlink support on FreeBSD

29 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Feb 13, 2024, 11:02:13 AM2/13/24
to Gerrit Bot, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Gopher Robot added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Gopher Robot . unresolved

I spotted some possible problems.

These findings are based on simple heuristics. If a finding appears wrong, briefly reply here saying so. Otherwise, please address any problems and update the GitHub PR. When complete, mark this comment as 'Done' and click the [blue 'Reply' button](https://go.dev/wiki/GerritBot#i-left-a-reply-to-a-comment-in-gerrit-but-no-one-but-me-can-see-it) above.

Possible problems detected:
1. You usually need to reference a bug number for all but trivial or cosmetic fixes. For this repo, the format is usually 'Fixes #12345' or 'Updates #12345' at the end of the commit message. Should you have a bug reference?

The commit title and commit message body come from the GitHub PR title and description, and must be edited in the GitHub web interface (not via git). For instructions, see [here](https://go.dev/wiki/GerritBot/#how-does-gerritbot-determine-the-final-commit-message). For guidelines on commit messages for the Go project, see [here](https://go.dev/doc/contribute#commit_messages).


(In general for Gerrit code reviews, the change author is expected to [log in to Gerrit](https://go-review.googlesource.com/login/) with a Gmail or other Google account and then close out each piece of feedback by marking it as 'Done' if implemented as suggested or otherwise reply to each review comment. See the [Review](https://go.dev/doc/contribute#review) section of the Contributing Guide for details.)

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I3e556d870afe4b704aba881b4c8b9b01503c0d02
Gerrit-Change-Number: 563835
Gerrit-PatchSet: 1
Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
Gerrit-CC: Gopher Robot <go...@golang.org>
Gerrit-Comment-Date: Tue, 13 Feb 2024 16:02:07 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Gerrit Bot (Gerrit)

unread,
Feb 13, 2024, 11:02:15 AM2/13/24
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Gerrit Bot has uploaded the change for review

Commit message

syscall: enable netlink support on FreeBSD

- enable netlink support on FreeBSD
- rebuild syscalls for Tier 1 architectures (arm64 & amd64) and 386
Change-Id: I3e556d870afe4b704aba881b4c8b9b01503c0d02
GitHub-Last-Rev: a397303635d7c4a9786cf74a2a3834c03fc4b7d0
GitHub-Pull-Request: golang/go#65692

Change diff


Change information

Files:
  • M src/syscall/netlink_linux.go
  • M src/syscall/types_freebsd.go
  • M src/syscall/zerrors_freebsd_386.go
  • M src/syscall/zerrors_freebsd_amd64.go
  • M src/syscall/zerrors_freebsd_arm64.go
  • M src/syscall/zsysnum_freebsd_386.go
  • M src/syscall/zsysnum_freebsd_amd64.go
  • M src/syscall/zsysnum_freebsd_arm64.go
  • M src/syscall/ztypes_freebsd_386.go
  • M src/syscall/ztypes_freebsd_amd64.go
  • M src/syscall/ztypes_freebsd_arm64.go
Change size: XL
Delta: 11 files changed, 5939 insertions(+), 5657 deletions(-)
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: newchange
    unsatisfied_requirement
    satisfied_requirement
    open
    diffy

    Gopher Robot (Gerrit)

    unread,
    Feb 13, 2024, 11:03:52 AM2/13/24
    to Gerrit Bot, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

    Message from Gopher Robot

    Congratulations on opening your first change. Thank you for your contribution!

    Next steps:
    A maintainer will review your change and provide feedback. See
    https://go.dev/doc/contribute#review for more info and tips to get your
    patch through code review.

    Most changes in the Go project go through a few rounds of revision. This can be
    surprising to people new to the project. The careful, iterative review process
    is our way of helping mentor contributors and ensuring that their contributions
    have a lasting impact.

    During May-July and Nov-Jan the Go project is in a code freeze, during which
    little code gets reviewed or merged. If a reviewer responds with a comment like
    R=go1.11 or adds a tag like "wait-release", it means that this CL will be
    reviewed as part of the next development cycle. See https://go.dev/s/release
    for more details.

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement is not satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: go
      Gerrit-Branch: master
      Gerrit-Change-Id: I3e556d870afe4b704aba881b4c8b9b01503c0d02
      Gerrit-Change-Number: 563835
      Gerrit-PatchSet: 1
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-Comment-Date: Tue, 13 Feb 2024 16:03:47 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: No
      unsatisfied_requirement
      open
      diffy

      Jorropo (Gerrit)

      unread,
      Feb 13, 2024, 2:08:50 PM2/13/24
      to Gerrit Bot, goph...@pubsubhelper.golang.org, Ian Lance Taylor, Brad Fitzpatrick, Tobias Klauser, triciu...@appspot.gserviceaccount.com, Gopher Robot, golang-co...@googlegroups.com
      Attention needed from Brad Fitzpatrick, Ian Lance Taylor and Tobias Klauser

      Jorropo voted Commit-Queue+1

      Commit-Queue+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Brad Fitzpatrick
      • Ian Lance Taylor
      • Tobias Klauser
      Submit Requirements:
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement is not satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: go
      Gerrit-Branch: master
      Gerrit-Change-Id: I3e556d870afe4b704aba881b4c8b9b01503c0d02
      Gerrit-Change-Number: 563835
      Gerrit-PatchSet: 1
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
      Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
      Gerrit-Reviewer: Jorropo <jorro...@gmail.com>
      Gerrit-Reviewer: Tobias Klauser <tobias....@gmail.com>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-Attention: Tobias Klauser <tobias....@gmail.com>
      Gerrit-Attention: Brad Fitzpatrick <brad...@golang.org>
      Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
      Gerrit-Comment-Date: Tue, 13 Feb 2024 19:08:42 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      unsatisfied_requirement
      open
      diffy

      Gerrit Bot (Gerrit)

      unread,
      Feb 13, 2024, 5:49:58 PM2/13/24
      to Mina Galić, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
      Attention needed from Brad Fitzpatrick, Ian Lance Taylor, Jorropo and Tobias Klauser

      Gerrit Bot uploaded new patchset

      Gerrit Bot uploaded patch set #2 to this change.
      Following approvals got outdated and were removed:
      • TryBots-Pass: LUCI-TryBot-Result-1 by Go LUCI
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Brad Fitzpatrick
      • Ian Lance Taylor
      • Jorropo
      • Tobias Klauser
      Submit Requirements:
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement is not satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: newpatchset
      Gerrit-Project: go
      Gerrit-Branch: master
      Gerrit-Change-Id: I3e556d870afe4b704aba881b4c8b9b01503c0d02
      Gerrit-Change-Number: 563835
      Gerrit-PatchSet: 2
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
      Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
      Gerrit-Reviewer: Jorropo <jorro...@gmail.com>
      Gerrit-Reviewer: Tobias Klauser <tobias....@gmail.com>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-Attention: Tobias Klauser <tobias....@gmail.com>
      Gerrit-Attention: Brad Fitzpatrick <brad...@golang.org>
      Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
      Gerrit-Attention: Jorropo <jorro...@gmail.com>
      unsatisfied_requirement
      open
      diffy

      Ian Lance Taylor (Gerrit)

      unread,
      Feb 13, 2024, 5:53:12 PM2/13/24
      to Gerrit Bot, Mina Galić, goph...@pubsubhelper.golang.org, Go LUCI, Jorropo, Ian Lance Taylor, Brad Fitzpatrick, Tobias Klauser, triciu...@appspot.gserviceaccount.com, Gopher Robot, golang-co...@googlegroups.com
      Attention needed from Brad Fitzpatrick, Jorropo and Tobias Klauser

      Ian Lance Taylor added 2 comments

      File src/syscall/netlink_linux.go
      Line 1, Patchset 2 (Latest)://!build linux freebsd
      Ian Lance Taylor . unresolved

      This isn't going to do anything. How did you test this?

      File src/syscall/zerrors_freebsd_386.go
      Line 12, Patchset 2 (Latest): AF_APPLETALK = 0x10
      Ian Lance Taylor . unresolved

      In general we don't want to arbitrarily update these files. We want people to use the golang.org/x/sys/unix package if they need any newer funtionality. We should only update these files where they are incorrect.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Brad Fitzpatrick
      • Jorropo
      • Tobias Klauser
      Submit Requirements:
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement is not satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: go
      Gerrit-Branch: master
      Gerrit-Change-Id: I3e556d870afe4b704aba881b4c8b9b01503c0d02
      Gerrit-Change-Number: 563835
      Gerrit-PatchSet: 2
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
      Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
      Gerrit-Reviewer: Jorropo <jorro...@gmail.com>
      Gerrit-Reviewer: Tobias Klauser <tobias....@gmail.com>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-Attention: Tobias Klauser <tobias....@gmail.com>
      Gerrit-Attention: Brad Fitzpatrick <brad...@golang.org>
      Gerrit-Attention: Jorropo <jorro...@gmail.com>
      Gerrit-Comment-Date: Tue, 13 Feb 2024 22:53:07 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      unsatisfied_requirement
      open
      diffy

      Mina Galić (Gerrit)

      unread,
      Feb 14, 2024, 9:09:57 AM2/14/24
      to Gerrit Bot, goph...@pubsubhelper.golang.org, Go LUCI, Jorropo, Ian Lance Taylor, Brad Fitzpatrick, Tobias Klauser, triciu...@appspot.gserviceaccount.com, Gopher Robot, golang-co...@googlegroups.com
      Attention needed from Brad Fitzpatrick, Ian Lance Taylor, Jorropo and Tobias Klauser

      Mina Galić added 2 comments

      File src/syscall/netlink_linux.go
      Line 1, Patchset 2 (Latest)://!build linux freebsd
      Ian Lance Taylor . unresolved

      This isn't going to do anything. How did you test this?

      Mina Galić

      There was quite a lot of strange and bogus changes that mkall.sh produced, I must've missed this one.

      File src/syscall/zerrors_freebsd_386.go
      Line 12, Patchset 2 (Latest): AF_APPLETALK = 0x10
      Ian Lance Taylor . unresolved

      In general we don't want to arbitrarily update these files. We want people to use the golang.org/x/sys/unix package if they need any newer funtionality. We should only update these files where they are incorrect.

      Mina Galić

      I guess I would have to be way more selective about to commit in such a change.
      re newer functionality: the main purpose is to add AF_NETLINK as known constant to FreeBSD, and thus allow FreeBSD to use the existing netlink related syscalls.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Brad Fitzpatrick
      • Ian Lance Taylor
      • Jorropo
      • Tobias Klauser
      Submit Requirements:
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement is not satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: go
      Gerrit-Branch: master
      Gerrit-Change-Id: I3e556d870afe4b704aba881b4c8b9b01503c0d02
      Gerrit-Change-Number: 563835
      Gerrit-PatchSet: 2
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
      Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
      Gerrit-Reviewer: Jorropo <jorro...@gmail.com>
      Gerrit-Reviewer: Tobias Klauser <tobias....@gmail.com>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-CC: Mina Galić <fre...@igalic.co>
      Gerrit-Attention: Tobias Klauser <tobias....@gmail.com>
      Gerrit-Attention: Brad Fitzpatrick <brad...@golang.org>
      Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
      Gerrit-Attention: Jorropo <jorro...@gmail.com>
      Gerrit-Comment-Date: Wed, 14 Feb 2024 14:09:50 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Ian Lance Taylor <ia...@golang.org>
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages