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.

Is that TMS320C6670 EMAC support promiscuous mode ?

Other Parts Discussed in Thread: TMS320C6670

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.

  • Can you please install the NDK examples of C6670 EVM from mCSDK package ?
    You have to compile with "TEST_RAW_SEND and TEST_RAW_RECV" variables defined to do your requirement.
  • 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

  • Hi ,

    Thanks for your reply ,and now I am using sys/bios, not linux.

    Is that also support the promiscous mode in sys/bios ?

  • Hi,

    The hardware itself supports it (document I provided). Refer to the comment from Titus for the sw.

    Best Regards,
    Yordan