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.

Linux/AM5728: Ethernet promiscuous mode configuration

Part Number: AM5728


Tool/software: Linux

Hello,

I am working on a product with the AM5728, one of the Ethernet ports is directly connected to another piece of custom hardware with a static IP and MAC address. Since this Ethernet link never sees the outside world (or any other device) it would keep things much simpler if the custom hardware could send an arbitrary, fixed destination MAC and IP address to the AM5728, and not have to worry about any ARP process. 

There is a limitation within the custom hardware connected to the AM5728 through the Ethernet port, in that it is unable to send data with a multicast MAC address (intermediate hardware bandwidth limits multicast data).

I have solved this problem with other hardware by setting the MAC into promiscuous mode, however I have reviewed the TRM and have not found much about setting the AM5728 GMAC into promiscuous mode, any help on this would be appreciated.

Thanks,

Chad

  • The software team have been notified. They will respond here.
  • Hello, just wondering if anyone has been able to look into this? I have had limited success finding information in the TRM regarding my situation.

    Thanks,
    Chad
  • Which OS are you using? Linux?

    Could also post the steps you tried to send the multicast data?

  • Using Linux on the AM5728 which is receiving the Ethernet packets.

    The system setup is as follows:
    FPGA implemented MAC -> Intermediate 3rd party hardware -> AM5728

    The FPGA sends its stream of packets to a fixed MAC and IP address (no ARP process has been implemented and would like to be avoided) with the intended receiver to be the AM5728. A multicast address could typically be used in this setup, however there is a limitation in the intermediate 3rd party hardware in which it bandwidth throttles multicast data to well below our required amount, therefor multicast addressing cannot be used for the primary data stream.

    I have previously had success in configuring MACs in promiscuous mode, to allow for reception of all packets regardless of MAC destination. This would be ideal for this setup since it is confined to this local network, with fixed hardware.

    Thanks,
    Chad
  • Does this command work? I have assumed eth0 here. Which port are you using on the AM5728?

     ifconfig eth0 promisc

    If you were trying this command is there something happening that makes you believe the port is not in promiscuous mode?

    If the command is not working please attach the output of "ethtool eth0", or the port that you are using.

  • I am using eth0.

    I have tried "ifconfig eth0 promisc" but have not had success.

    We have a gstreamer pipeline setup where if we configure the FPGA to send to the hard-coded MAC address of the AM5728 it shows our stream, however if we change the destination address to a different uni-cast address the stream no longer works. The gstreamer pipeline just sits there waiting for data, indicating that packets are being dropped by the MAC.

    "ethtool eth0" output:

    Settings for eth0:
    	Supported ports: [ TP MII ]
    	Supported link modes:   10baseT/Half 10baseT/Full 
    	                        100baseT/Half 100baseT/Full 
    	                        1000baseT/Half 1000baseT/Full 
    	Supported pause frame use: Symmetric
    	Supports auto-negotiation: Yes
    	Advertised link modes:  10baseT/Half 10baseT/Full 
    	                        100baseT/Half 100baseT/Full 
    	                        1000baseT/Half 1000baseT/Full 
    	Advertised pause frame use: Symmetric
    	Advertised auto-negotiation: Yes
    	Link partner advertised link modes:  10baseT/Half 10baseT/Full 
    	                                     100baseT/Half 100baseT/Full 
    	Link partner advertised pause frame use: Symmetric Receive-only
    	Link partner advertised auto-negotiation: Yes
    	Speed: 100Mb/s
    	Duplex: Full
    	Port: MII
    	PHYAD: 1
    	Transceiver: external
    	Auto-negotiation: on
    	Supports Wake-on: d
    	Wake-on: d
    	Current message level: 0x00000000 (0)
    			       
    	Link detected: yes
    

  • Hello,

    I have asked around further and It seems like even though I can issue a "ifconfig eth0 promisc" command from user-space the AM5728 EMAC may not support promiscuous mode.

    I have still not been able to find any information regarding this in the TRM or elsewhere. Could someone from TI please comment on whether or not there is any ability to have this functionality?

    Thanks,
    Chad