• Home
  • Raw
  • Download

Lines Matching refs:source

35 static int fdb_insert(struct net_bridge *br, struct net_bridge_port *source,
484 struct net_bridge_port *source, in fdb_create() argument
495 fdb->dst = source; in fdb_create()
516 static int fdb_insert(struct net_bridge *br, struct net_bridge_port *source, in fdb_insert() argument
532 source ? source->dev->name : br->dev->name, addr, vid); in fdb_insert()
536 fdb = fdb_create(br, source, addr, vid, 1, 1); in fdb_insert()
546 int br_fdb_insert(struct net_bridge *br, struct net_bridge_port *source, in br_fdb_insert() argument
552 ret = fdb_insert(br, source, addr, vid); in br_fdb_insert()
557 void br_fdb_update(struct net_bridge *br, struct net_bridge_port *source, in br_fdb_update() argument
568 if (!(source->state == BR_STATE_LEARNING || in br_fdb_update()
569 source->state == BR_STATE_FORWARDING)) in br_fdb_update()
578 source->dev->name, addr, vid); in br_fdb_update()
583 if (unlikely(source != fdb->dst && !fdb->is_sticky)) { in br_fdb_update()
584 fdb->dst = source; in br_fdb_update()
595 trace_br_fdb_update(br, source, addr, vid, added_by_user); in br_fdb_update()
601 fdb = fdb_create(br, source, addr, vid, 0, 0); in br_fdb_update()
605 trace_br_fdb_update(br, source, addr, vid, in br_fdb_update()
798 static int fdb_add_entry(struct net_bridge *br, struct net_bridge_port *source, in fdb_add_entry() argument
807 if (source && !(state & NUD_PERMANENT) && !(state & NUD_NOARP) && in fdb_add_entry()
808 !(source->state == BR_STATE_LEARNING || in fdb_add_entry()
809 source->state == BR_STATE_FORWARDING)) in fdb_add_entry()
812 if (!source && !(state & NUD_PERMANENT)) { in fdb_add_entry()
826 fdb = fdb_create(br, source, addr, vid, 0, 0); in fdb_add_entry()
835 if (fdb->dst != source) { in fdb_add_entry()
836 fdb->dst = source; in fdb_add_entry()