]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'lan966x-extend-switchdev-and-mdb-support'
authorDavid S. Miller <davem@davemloft.net>
Wed, 5 Jan 2022 11:25:14 +0000 (11:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jan 2022 11:25:14 +0000 (11:25 +0000)
commit5c409564f082a087b7ada401ddd8bef60359a0d6
tree371e23bb2c51584b2fc93f9e45f534d531055bb1
parent163ebf3f8b6fc99790f585ffcd0fbcb94d788cc9
parent870201b6519b2164d77f2086f0b1ca9a2f02e80c
Merge branch 'lan966x-extend-switchdev-and-mdb-support'

Horatiu Vultur says:

====================
net: lan966x: Extend switchdev with mdb support

This patch series extends lan966x with mdb support by implementing
the switchdev callbacks: SWITCHDEV_OBJ_ID_PORT_MDB and
SWITCHDEV_OBJ_ID_HOST_MDB.
It adds support for both ipv4/ipv6 entries and l2 entries.

v2->v3:
- rename PGID_FIRST and PGID_LAST to PGID_GP_START and PGID_GP_END
- don't forget and relearn an entry for the CPU if there are more
  references to the cpu.

v1->v2:
- rename lan966x_mac_learn_impl to __lan966x_mac_learn
- rename lan966x_mac_cpu_copy to lan966x_mac_ip_learn
- fix grammar and typos in comments and commit messages
- add reference counter for entries that copy frames to CPU
====================

Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>