Is there a way(using some bit in a register) to disable automatic RX padding of incoming packets in CPSW hardware
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 there a way(using some bit in a register) to disable automatic RX padding of incoming packets in CPSW hardware
Let me give an example. Packet coming from external world is of length 34Bytes(Generated using packet generator tool). Once the packet reaches the EMAC, it is zero padded and the new length now is 64Bytes(Minum Ethernet Frame size).
In general, packet of length less than 64Bytes is zero padded my the EMAC and sent as 64Bytes. Is there a way in hardware to disable this automatic RX padding.? Some of the Intel MAC's do provide the feature of disabling Automatic RX padding. Do we have any such option here in AM335x EMAC.?
Hi,
Here is the update from the designer:
Short packets received on Ethernet ports are dropped. Short packets greater than 32 bytes sent by the host to Ethernet are padded and sent. The host needs to not send packets if they are shorter than desired. Also, for quite a while there has been a p0_rx_pad bit (in CPSW_CONTROL) that causes short packets to be padded and sent or dropped.