summaryrefslogtreecommitdiffstats
path: root/net/dsa/dsa_priv.h
diff options
context:
space:
mode:
authorArkadi Sharshevsky <arkadis@mellanox.com>2017-08-06 16:15:42 +0300
committerDavid S. Miller <davem@davemloft.net>2017-08-07 14:48:48 -0700
commitc9eb3e0f870105242a15a5e628ed202cf32afe0d (patch)
tree3a6d2ed104fdf6e6525e0c28426ed64dfa5ddb50 /net/dsa/dsa_priv.h
parent2acf4e6a890b0228ed19b228063d69666f61ee19 (diff)
downloadlinux-c9eb3e0f870105242a15a5e628ed202cf32afe0d.tar.gz
linux-c9eb3e0f870105242a15a5e628ed202cf32afe0d.tar.bz2
linux-c9eb3e0f870105242a15a5e628ed202cf32afe0d.zip
net: dsa: Add support for learning FDB through notification
Add support for learning FDB through notification. The driver defers the hardware update via ordered work queue. In case of a successful FDB add a notification is sent back to bridge. In case of hw FDB del failure the static FDB will be deleted from the bridge, thus, the interface is moved to down state in order to indicate inconsistent situation. Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/dsa_priv.h')
-rw-r--r--net/dsa/dsa_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h
index c0ee6a7694f8..fe90e6475297 100644
--- a/net/dsa/dsa_priv.h
+++ b/net/dsa/dsa_priv.h
@@ -106,6 +106,7 @@ void dsa_cpu_dsa_destroy(struct dsa_port *dport);
const struct dsa_device_ops *dsa_resolve_tag_protocol(int tag_protocol);
int dsa_cpu_port_ethtool_setup(struct dsa_port *cpu_dp);
void dsa_cpu_port_ethtool_restore(struct dsa_port *cpu_dp);
+bool dsa_schedule_work(struct work_struct *work);
/* legacy.c */
int dsa_legacy_register(void);