Hi ,
I want to use the raw socket to process any packet which received on port EMAC0 or EMAC1.
I wonder wether if TMS320C6670 EMAC support promiscuous mode ?
Thanks a lot.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi ,
I want to use the raw socket to process any packet which received on port EMAC0 or EMAC1.
I wonder wether if TMS320C6670 EMAC support promiscuous mode ?
Thanks a lot.
Hi,
As per this user gudie:
EMAC supports promiscuous mode. Also the linux driver (drivers/net/ethernet/ti/davinci_emac.c), provides a possibility to set that mode:
mbp_enable =
(((EMAC_DEF_PASS_CRC) ? (EMAC_RXMBP_PASSCRC_MASK) : 0x0) |
((EMAC_DEF_QOS_EN) ? (EMAC_RXMBP_QOSEN_MASK) : 0x0) |
((EMAC_DEF_NO_BUFF_CHAIN) ? (EMAC_RXMBP_NOCHAIN_MASK) : 0x0) |
((EMAC_DEF_MACCTRL_FRAME_EN) ? (EMAC_RXMBP_CMFEN_MASK) : 0x0) |
((EMAC_DEF_SHORT_FRAME_EN) ? (EMAC_RXMBP_CSFEN_MASK) : 0x0) |
((EMAC_DEF_ERROR_FRAME_EN) ? (EMAC_RXMBP_CEFEN_MASK) : 0x0) |
((EMAC_DEF_PROM_EN) ? (EMAC_RXMBP_CAFEN_MASK) : 0x0) |
((EMAC_DEF_PROM_CH & EMAC_RXMBP_CHMASK) << \
EMAC_RXMBP_PROMCH_SHIFT) |
Hope this helps.
Best Regards,
Yordan