Skip to content
Snippets Groups Projects
Commit daaec679 authored by Wu, Qiming's avatar Wu, Qiming Committed by Kenneth Johansson
Browse files

Merge pull request #181 in SW_PON/linux from...

Merge pull request #181 in SW_PON/linux from feature/DRVLIB_SW-531-disable-cpu-path-mac-learning to xrx500

* commit 'b84074c5c8789c0b4c463b4b57184ac452e79e7b':
  DRVLIB_SW-531-Datapath disable switch MAC learning in CPU path
parent 9f112b7b
No related branches found
No related tags found
No related merge requests found
......@@ -645,10 +645,16 @@ int alloc_bridge_port(int inst, int port_id, int subif, int fid, int bp_member)
bp_cfg.nBridgePortId = bp.nBridgePortId;
bp_cfg.nDestLogicalPortId = port_id;
bp_cfg.nDestSubIfIdGroup = subif;
/* By default Disable src mac learning for registered
* non CPU bridge port with DP
*/
bp_cfg.bSrcMacLearningDisable = 1;
bp_cfg.eMask = GSW_BRIDGE_PORT_CONFIG_MASK_BRIDGE_ID |
GSW_BRIDGE_PORT_CONFIG_MASK_BRIDGE_PORT_MAP |
GSW_BRIDGE_PORT_CONFIG_MASK_MC_SRC_MAC_LEARNING |
GSW_BRIDGE_PORT_CONFIG_MASK_EGRESS_CTP_MAPPING;
bp_cfg.nBridgeId = fid;
SET_BP_MAP(bp_cfg.nBridgePortMap, bp_member); /*CPU*/
ret = gsw_core_api((dp_gsw_cb)gsw_handle->gsw_brdgport_ops
.BridgePort_ConfigSet, gsw_handle, &bp_cfg);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment