Lines Matching refs:source
383 struct net_bridge_port *source, in fdb_create() argument
407 WRITE_ONCE(fdb->dst, source); in fdb_create()
426 static int fdb_add_local(struct net_bridge *br, struct net_bridge_port *source, in fdb_add_local() argument
442 source ? source->dev->name : br->dev->name, addr, vid); in fdb_add_local()
446 fdb = fdb_create(br, source, addr, vid, in fdb_add_local()
865 int br_fdb_add_local(struct net_bridge *br, struct net_bridge_port *source, in br_fdb_add_local() argument
871 ret = fdb_add_local(br, source, addr, vid); in br_fdb_add_local()
883 void br_fdb_update(struct net_bridge *br, struct net_bridge_port *source, in br_fdb_update() argument
898 source->dev->name, addr, vid); in br_fdb_update()
909 if (unlikely(source != READ_ONCE(fdb->dst) && in br_fdb_update()
912 WRITE_ONCE(fdb->dst, source); in br_fdb_update()
933 trace_br_fdb_update(br, source, addr, vid, flags); in br_fdb_update()
939 fdb = fdb_create(br, source, addr, vid, flags); in br_fdb_update()
941 trace_br_fdb_update(br, source, addr, vid, flags); in br_fdb_update()
1056 static int fdb_add_entry(struct net_bridge *br, struct net_bridge_port *source, in fdb_add_entry() argument
1068 if (source && !(state & NUD_PERMANENT) && !(state & NUD_NOARP) && in fdb_add_entry()
1069 !(source->state == BR_STATE_LEARNING || in fdb_add_entry()
1070 source->state == BR_STATE_FORWARDING)) in fdb_add_entry()
1073 if (!source && !(state & NUD_PERMANENT)) { in fdb_add_entry()
1094 fdb = fdb_create(br, source, addr, vid, in fdb_add_entry()
1104 if (READ_ONCE(fdb->dst) != source) { in fdb_add_entry()
1105 WRITE_ONCE(fdb->dst, source); in fdb_add_entry()