linux/drivers/net/ethernet/freescale/dpaa2
Vladimir Oltean 2c4eca3ef7 net: bridge: switchdev: include local flag in FDB notifications
As explained in bugfix commit 6ab4c3117a ("net: bridge: don't notify
switchdev for local FDB addresses") as well as in this discussion:
https://lore.kernel.org/netdev/20210117193009.io3nungdwuzmo5f7@skbuf/

the switchdev notifiers for FDB entries managed to have a zero-day bug,
which was that drivers would not know what to do with local FDB entries,
because they were not told that they are local. The bug fix was to
simply not notify them of those addresses.

Let us now add the 'is_local' bit to bridge FDB entries, and make all
drivers ignore these entries by their own choice.

Co-developed-by: Tobias Waldekranz <tobias@waldekranz.com>
Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-04-16 15:15:45 -07:00
..
dpaa2-eth-dcb.c dpaa2-eth: add a dpaa2_eth_ prefix to all functions in dpaa2-eth-dcb.c 2020-09-01 13:23:47 -07:00
dpaa2-eth-debugfs.c dpaa2-eth: Convert to DEFINE_SHOW_ATTRIBUTE 2020-09-17 17:05:29 -07:00
dpaa2-eth-debugfs.h dpaa2: no need to check return value of debugfs_create functions 2019-08-10 15:25:48 -07:00
dpaa2-eth-devlink.c dpaa2-eth: add support for devlink parser error drop traps 2020-10-02 16:31:56 -07:00
dpaa2-eth-trace.h dpaa2-eth: fix recursive header include 2020-06-25 16:03:39 -07:00
dpaa2-eth.c dpaa2-eth: export the rx copybreak value as an ethtool tunable 2021-04-02 14:25:47 -07:00
dpaa2-eth.h dpaa2-eth: export the rx copybreak value as an ethtool tunable 2021-04-02 14:25:47 -07:00
dpaa2-ethtool.c dpaa2-eth: export the rx copybreak value as an ethtool tunable 2021-04-02 14:25:47 -07:00
dpaa2-mac.c net: dpaa2-mac: add backplane link mode support 2021-02-06 14:35:21 -08:00
dpaa2-mac.h dpaa2-mac: split up initializing the MAC object from connecting to it 2021-01-09 16:21:29 -08:00
dpaa2-ptp.c dpaa2-eth: define a global ptp_qoriq structure pointer 2020-09-18 14:32:48 -07:00
dpaa2-ptp.h dpaa2-eth: define a global ptp_qoriq structure pointer 2020-09-18 14:32:48 -07:00
dpaa2-switch-ethtool.c staging: dpaa2-switch: move the driver out of staging 2021-03-10 13:30:36 -08:00
dpaa2-switch-flower.c dpaa2-switch: reuse dpaa2_switch_acl_entry_add() for STP frames trap 2021-04-13 15:12:18 -07:00
dpaa2-switch.c net: bridge: switchdev: include local flag in FDB notifications 2021-04-16 15:15:45 -07:00
dpaa2-switch.h dpaa2-switch: reuse dpaa2_switch_acl_entry_add() for STP frames trap 2021-04-13 15:12:18 -07:00
dpkg.h dpaa2-eth: fixup kdoc warnings 2021-03-16 15:29:49 -07:00
dpmac-cmd.h dpaa2-eth: fix a build warning in dpmac.c 2020-09-18 14:36:00 -07:00
dpmac.c dpaa2-eth: add ethtool MAC counters 2019-11-07 15:31:53 -08:00
dpmac.h dpaa2-eth: fixup kdoc warnings 2021-03-16 15:29:49 -07:00
dpni-cmd.h dpaa2-eth: add support for Rx VLAN filtering 2021-01-13 19:20:55 -08:00
dpni.c dpaa2-eth: fixup kdoc warnings 2021-03-16 15:29:49 -07:00
dpni.h dpaa2-eth: fixup kdoc warnings 2021-03-16 15:29:49 -07:00
dprtc-cmd.h dpaa2-ptp: add external trigger event support 2019-12-16 15:56:41 -08:00
dprtc.c dpaa2-ptp: add interrupt support 2019-06-15 13:43:06 -07:00
dprtc.h dpaa2-eth: fixup kdoc warnings 2021-03-16 15:29:49 -07:00
dpsw-cmd.h dpaa2-switch: add tc flower hardware offload on ingress traffic 2021-04-13 15:12:18 -07:00
dpsw.c dpaa2-switch: add tc flower hardware offload on ingress traffic 2021-04-13 15:12:18 -07:00
dpsw.h dpaa2-switch: add tc flower hardware offload on ingress traffic 2021-04-13 15:12:18 -07:00
Kconfig staging: dpaa2-switch: move the driver out of staging 2021-03-10 13:30:36 -08:00
Makefile dpaa2-switch: add tc flower hardware offload on ingress traffic 2021-04-13 15:12:18 -07:00