diff options
| author | Alok Tiwari <alok.a.tiwari@oracle.com> | 2025-10-20 10:09:13 -0700 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-10-21 17:40:26 -0700 |
| commit | 0364ca33097da247ef6539c765405657324f243e (patch) | |
| tree | 5b952c57b487f1aabdb26e13c8e1cea1ef20b5b3 /include/linux/netdev_features.h | |
| parent | 3ff9bcecce83f12169ab3e42671bd76554ca521a (diff) | |
devlink: region: correct port region lookup to use port_ops
The function devlink_port_region_get_by_name() incorrectly uses
region->ops->name to compare the region name. as it is not any critical
impact as ops and port_ops define as union for devlink_region but as per
code logic it should refer port_ops here.
No functional impact as ops and port_ops are part of same union,
and name is the first member of both.
Update it to use region->port_ops->name to properly reference
the name of the devlink port region.
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://patch.msgid.link/20251020170916.1741808-1-alok.a.tiwari@oracle.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/netdev_features.h')
0 files changed, 0 insertions, 0 deletions
