mirror of
https://github.com/torvalds/linux.git
synced 2026-09-14 16:10:02 +02:00
The .netdev_to_port() currently takes only a net_device and returns the port index, without verifying the netdev actually belongs to the switch being operated on. This can cause flower rule parsing to silently resolve to a wrong port on the local hardware. Update both implementations felix_netdev_to_port() and ocelot_netdev_to_port() to validate ownership. Also update the callers in ocelot_flower.c to pass through the ocelot context. Signed-off-by: David Yang <mmyangfl@gmail.com> Link: https://patch.msgid.link/20260606125247.305167-1-mmyangfl@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> |
||
|---|---|---|
| .. | ||
| ocelot_ana.h | ||
| ocelot_dev.h | ||
| ocelot_hsio.h | ||
| ocelot_ptp.h | ||
| ocelot_qsys.h | ||
| ocelot_sys.h | ||
| ocelot_vcap.h | ||
| ocelot.h | ||
| vsc7514_regs.h | ||