Skip to content

[26.04_linux-nvidia-bos] Backport devlink external flag exposition - #542

Closed
gobenji wants to merge 1 commit into
NVIDIA:26.04_linux-nvidia-bosfrom
gobenji:devlink-expose-external-7.0-hwe
Closed

[26.04_linux-nvidia-bos] Backport devlink external flag exposition#542
gobenji wants to merge 1 commit into
NVIDIA:26.04_linux-nvidia-bosfrom
gobenji:devlink-expose-external-7.0-hwe

Conversation

@gobenji

@gobenji gobenji commented Aug 11, 2026

Copy link
Copy Markdown

Backport the following change to the linux-nvidia kernel:

cb59bfd419d0c devlink: Expose external flag for PCI SF ports (net-next)

This flag is needed by the mlnx-sf tool that is part of ofed's mlnx-tools package.

This PR is the 26.04_linux-nvidia-bos counterpart of #541

NVBug: https://nvbugspro.nvidia.com/bug/6579497
LP: https://bugs.launchpad.net/ubuntu/+source/linux-nvidia/+bug/2163274

BugLink: https://bugs.launchpad.net/bugs/2163274

The external flag is part of the PCI SF port attributes, but unlike the
PCI PF and PCI VF flavours it was never filled into the port dump, so
userspace could not query it directly.

Reporting of the external flag was missed for SF ports. Hence, put
DEVLINK_ATTR_PORT_EXTERNAL for the PCI SF flavour as well, matching what
PCI PF and PCI VF ports already report.

$ devlink port show pci/0033:01:00.0/163840
 pci/0033:01:00.0/163840: type eth netdev eth1 flavour pcisf controller 1 pfnum 0 sfnum 77 external true splittable false

Reviewed-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Shay Drory <shayd@nvidia.com>
Link: https://patch.msgid.link/20260803090012.257242-1-shayd@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit cb59bfd419d0c560b9f7273522f9a4799062aad5 linux-next)
Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com>
Acked-by: Adham Abdalla <adhama@nvidia.com>
Acked-by: Aya Levin <ayal@nvidia.com>
@nirmoy nirmoy added the help wanted Extra attention is needed label Aug 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR Validation Report

Patchscan ✅ No Missing Fixes

All cherry-picked commits checked — no missing upstream fixes found.

PR Lint ✅ All checks passed

Details
Checking 1 commits...

Cherry-pick digest:
┌──────────────┬──────────────────────────────────────────────────────────────────┬────────────┬─────────┬───────────────────────────┐
│ Local        │ Referenced upstream / Patch subject                              │ Patch-ID   │ Subject │ SoB chain                 │
├──────────────┼──────────────────────────────────────────────────────────────────┼────────────┼─────────┼───────────────────────────┤
│ 69f962ec2d84 │ devlink: expose external flag for pci sf ports                   │ match      │ found   │ ok, backporter: bpoirier  │
└──────────────┴──────────────────────────────────────────────────────────────────┴────────────┴─────────┴───────────────────────────┘

Lint: all checks passed.

@nvmochs

nvmochs commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

No issues or concerns.

Acked-by: Matthew R. Ochs <mochs@nvidia.com>

@jamieNguyenNVIDIA jamieNguyenNVIDIA left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Acked-by: Jamie Nguyen <jamien@nvidia.com>

@nirmoy nirmoy added has_2_acks and removed help wanted Extra attention is needed labels Aug 11, 2026
@nvmochs

nvmochs commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Merged, closing PR.

9ef50529baf5 (nresolute/nvidia-bos-next) devlink: Expose external flag for PCI SF ports

@nvmochs nvmochs closed this Aug 11, 2026
@nirmoy

nirmoy commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

BaseOS Kernel Review

Summary

No issues found across the reviewed commits.

Findings: no problems found

Latest watcher review: open review

Generated test plan: open test plan

Kernel deb build: successful (download debs, 4 files)

Head: 69f962ec2d84

This comment is maintained by nv-pr-bot. It is updated when the GitHub watcher publishes a newer review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants