1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux/realtek
INAGAKI Hiroshi 109962d8bf realtek: update dsa.c of DSA driver for 5.15
- rtl83xx_vlan_filtering()

  "struct switchdev_trans *trans" parameter was removed[1] and
  "struct netlink_ext_ack *extack" was added[2].

[1]: https://www.spinics.net/lists/netdev/msg712250.html
[2]: https://www.spinics.net/lists/netdev/msg722496.html

- rtl83xx_vlan_add/del()

  vlan->vid_begin and vlan->vid_end were removed and vlan->vid was
  added[3].

[3]: https://www.spinics.net/lists/netdev/msg712248.html

- rtl83xx_vlan_prepare()

  "port_vlan_prepare" member was removed from "dsa_switch_ops" struct
  in dsa.h[4] and vlan_prepare function should be called from vlan_add
  function. Also, change return type of vlan_add function to int.

[4]: https://www.spinics.net/lists/netdev/msg712252.html

- rtl83xx_port_mdb_add()

  "port_mdb_prepare" member in "dsa_switch_ops" struct was removed and
  preparation need to be done in the function of "port_mdb_add" member
  instead. And also, int type need to be returned on "port_mdb_add"
  member[5].

[5]: https://www.spinics.net/lists/netdev/msg712251.html

- rtl83xx_port_pre_bridge_flags(), rtl83xx_port_bridge_flags()

  The current "port_pre_bridge_flags" member and "port_bridge_flags"
  member in "dsa_switch_ops" in dsa.h has flags of
  "struct switchdev_brport_flags" type instead[6], so adjust to it.
  And, the changed features are passed by flags.mask[7] in
  rtl83xx_port_bridge_flags(), so check it before calling function
  to enable/disable fieature.

[6]: https://lore.kernel.org/lkml/20210212151600.3357121-7-olteanv@gmail.com/
[7]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e18f4c18ab5b0dd47caaf8377c2e36d66f632a8c

Suggested-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
[shorten final return statement of rtl83xx_port_mdb_add()]
Signed-off-by: Sander Vanheule <sander@svanheule.net>
2022-12-15 20:52:40 +01:00
..
base-files realtek: add support for TP-Link SG2210P 2022-09-13 09:22:26 +02:00
dts-5.10 realtek: update GPIO bindings for DGS-1210-10P 2022-12-09 00:13:51 +01:00
dts-5.15 realtek: copy dts/files/patches/configs for 5.15 2022-12-15 20:52:09 +01:00
files/firmware/rtl838x_phy
files-5.10 realtek: fix dell typo 2022-12-01 22:49:23 +01:00
files-5.15 realtek: update dsa.c of DSA driver for 5.15 2022-12-15 20:52:40 +01:00
image realtek: d-link: add support for dgs-1210-28mp-f 2022-12-08 21:51:43 +01:00
patches-5.10 realtek: 5.10: refresh kernel patches 2022-10-25 04:56:16 +02:00
patches-5.15 realtek: refresh patches in 5.15 2022-12-15 20:52:40 +01:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: refresh config-5.15 in all subtargets 2022-12-15 20:52:40 +01:00
rtl839x realtek: refresh config-5.15 in all subtargets 2022-12-15 20:52:40 +01:00
rtl930x realtek: refresh config-5.15 in all subtargets 2022-12-15 20:52:40 +01:00
rtl931x realtek: refresh config-5.15 in all subtargets 2022-12-15 20:52:40 +01:00
Makefile realtek: Fix tc default package 2022-03-29 13:43:01 +02:00