Question about Promiscuous Mode Setting in S32G3 Linux PFE L2 Bridge

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Question about Promiscuous Mode Setting in S32G3 Linux PFE L2 Bridge

1,162 Views
minJ
Contributor I

I have a question regarding the S32G3 Linux PFE L2 bridge configuration.

When configuring the interface with the following command:
libfci_cli phyif-update -i emac0 -E --promisc ON --mode VLAN_BRIDGE --bs FW_ONLY

Is it necessary to always set promisc (promiscuous mode) to ON in this scenario?
If promisc is ON, all frames are received by the interface.
Does enabling promiscuous mode cause any performance impact or additional load on the system?
Are there any recommended guidelines for when to use promisc ON or OFF in this L2 bridge setup?

Thank you for your support.

0 Kudos
Reply
2 Replies

1,117 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @minJ 

Thanks for your patience.

1. As indicated from L2 bridge introduction from PFE FCI API Reference(Rev. 2.7.0), promisc mode is often enabled during the configuration phase.

1.png

 

2. As far as I know, for the EMAC/physical interfaces, you can also set them as non-promiscuous, but after that you have to manually assign them MAC addresses for the filter using libfci configuration.

 

BR

Chenyin

 

 

0 Kudos
Reply

1,140 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @minJ 

Thanks for your post.

Would you mind share the BSP version and PFE driver version used in advance?

 

 

BR

Chenyin

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2322313%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EQuestion%20about%20Promiscuous%20Mode%20Setting%20in%20S32G3%20Linux%20PFE%20L2%20Bridge%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2322313%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20a%20question%20regarding%20the%20S32G3%20Linux%20PFE%20L2%20bridge%20configuration.%3C%2FP%3E%3CP%3EWhen%20configuring%20the%20interface%20with%20the%20following%20command%3A%3CBR%20%2F%3Elibfci_cli%20phyif-update%20-i%20emac0%20-E%20--promisc%20ON%20--mode%20VLAN_BRIDGE%20--bs%20FW_ONLY%3C%2FP%3E%3CP%3EIs%20it%20necessary%20to%20always%20set%20promisc%20(promiscuous%20mode)%20to%20ON%20in%20this%20scenario%3F%3CBR%20%2F%3EIf%20promisc%20is%20ON%2C%20all%20frames%20are%20received%20by%20the%20interface.%3CBR%20%2F%3EDoes%20enabling%20promiscuous%20mode%20cause%20any%20performance%20impact%20or%20additional%20load%20on%20the%20system%3F%3CBR%20%2F%3EAre%20there%20any%20recommended%20guidelines%20for%20when%20to%20use%20promisc%20ON%20or%20OFF%20in%20this%20L2%20bridge%20setup%3F%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20support.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2322445%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Question%20about%20Promiscuous%20Mode%20Setting%20in%20S32G3%20Linux%20PFE%20L2%20Bridge%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2322445%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F260071%22%20target%3D%22_blank%22%3E%40minJ%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20post.%3C%2FP%3E%0A%3CP%3EWould%20you%20mind%20share%20the%20BSP%20version%20and%20PFE%20driver%20version%20used%20in%20advance%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CDIV%20id%3D%22tinyMceEditorchenyin_h_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EChenyin%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2322999%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Question%20about%20Promiscuous%20Mode%20Setting%20in%20S32G3%20Linux%20PFE%20L2%20Bridge%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2322999%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F260071%22%20target%3D%22_blank%22%3E%40minJ%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20patience.%3C%2FP%3E%0A%3CP%3E1.%20As%20indicated%20from%20L2%20bridge%20introduction%20from%26nbsp%3B%3CSPAN%20class%3D%22fontstyle0%22%3EPFE%20FCI%20API%20Reference(Rev.%202.7.0)%2C%20promisc%20mode%20is%20often%20enabled%20during%20the%20configuration%20phase.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22fontstyle0%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%221.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%221.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F377872i5B033F1D5D061634%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%221.png%22%20alt%3D%221.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorchenyin_h_1%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E2.%20As%20far%20as%20I%20know%2C%20f%3CSPAN%3Eor%20the%20EMAC%2Fphysical%20interfaces%2C%20you%20can%20also%20set%20them%20as%20non-promiscuous%2C%20but%20after%20that%20you%20have%20to%20manually%20assign%20them%20MAC%20addresses%20for%20the%20filter%20using%20libfci%20configuration.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%3EBR%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EChenyin%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E