diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-05-30 10:32:22 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-05-30 10:32:22 -0700 |
commit | 2e246bca986598bdc9d7cae64cf0995257328a5d (patch) | |
tree | 7b307c3c616b0e0e4217e0f1b0c94b11dfcf2dbd /net/bridge/br_forward.c | |
parent | net: fec: remove last_bdp from fec_enet_txq_xmit_frame() (diff) | |
parent | devlink: save devlink_port_ops into a variable in devlink_port_function_validate() (diff) | |
download | wireguard-linux-2e246bca986598bdc9d7cae64cf0995257328a5d.tar.xz wireguard-linux-2e246bca986598bdc9d7cae64cf0995257328a5d.zip |
Merge branch 'devlink-move-port-ops-into-separate-structure'
Jiri Pirko says:
====================
devlink: move port ops into separate structure
In devlink, some of the objects have separate ops registered alongside
with the object itself. Port however have ops in devlink_ops structure.
For drivers what register multiple kinds of ports with different ops
this is not convenient.
This patchset changes does following changes:
1) Introduces devlink_port_ops with functions that allow devlink port
to be registered passing a pointer to driver port ops. (patch #1)
2) Converts drivers to define port_ops and register ports passing the
ops pointer. (patches #2, #3, #4, #6, #8, and #9)
3) Moves ops from devlink_ops struct to devlink_port_ops.
(patches #5, #7, #10-15)
No functional changes.
====================
Link: https://lore.kernel.org/r/20230526102841.2226553-1-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/bridge/br_forward.c')
0 files changed, 0 insertions, 0 deletions