Skip to content

Commit

Permalink
update init port
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas Gorski <jonas.gorski@bisdn.de>
  • Loading branch information
KanjiMonster committed Jan 16, 2025
1 parent 79e7a55 commit 16c9fe4
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/netlink/nbi_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,8 @@ void nbi_impl::port_notification(
case PORT_EVENT_TABLE:
switch (get_port_type(ntfy.port_id)) {
case nbi::port_type_physical:
swi->port_set_learn(ntfy.port_id,
switch_interface::SAI_SRC_LEARN_ARL |
switch_interface::SAI_SRC_LEARN_CPU |
switch_interface::SAI_SRC_LEARN_FWD |
switch_interface::SAI_SRC_LEARN_PENDING,
switch_interface::SAI_SRC_LEARN_ARL |
switch_interface::SAI_SRC_LEARN_CPU |
switch_interface::SAI_SRC_LEARN_FWD |
switch_interface::SAI_SRC_LEARN_PENDING);
swi->port_set_learn(ntfy.port_id, switch_interface::SAI_SRC_LEARN_HW_NOTIFICATION);
swi->port_set_move_learn(ntfy.port_id, switch_interface::SAI_SRC_LEARN_HW_NOTIFICATION);
port_man->create_portdev(ntfy.port_id, ntfy.name, ntfy.hwaddr, *this);
break;
default:
Expand Down

0 comments on commit 16c9fe4

Please sign in to comment.