Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17043 Discussions

payload pad removal in Altera TSE

Altera_Forum
Honored Contributor II
1,343 Views

Hi all! 

 

I would like to know how payload pad removal works in the aLtera TSE IP. 

 

How does the TSE know the payload length if ethernet header field "length/type" carries a type info (e.g. 0x0800 = IPv4 type)? 

 

Thx
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
614 Views

The addition/removal is for 32bit alignment, so the core itself doesn't care what length or type the packet is.

0 Kudos
Altera_Forum
Honored Contributor II
614 Views

I'm sorry but I don't understand what you mean. 

Can you develop please? 

Thx 

Julien
0 Kudos
Altera_Forum
Honored Contributor II
614 Views

Hello J_Renauld, 

I know it's almost a year ago,  

but did you or somebody else find out how pad removal works? 

 

Because in my case it doesn't work (alltough I set the PAD_EN bit) and in assumption with the Leightweight IP-Stack and TCP I think it is not nice, that after every Connection establishment the Client sends back another ACK, because he thinks that there was some data in the ACK of the Client becaus of padding. 

 

Best Regards, 

Elegan
0 Kudos
Altera_Forum
Honored Contributor II
614 Views

Hm, I see no problems with LwIP and TSE. 32bit alignment flag is set in TSE options as it is also set in LwIP driver options.

0 Kudos
Altera_Forum
Honored Contributor II
614 Views

Sorry Socrates, but I think here you mean something different. 

I think you mean the two byte which TSE puts in front of the Ethernet-Header to achive a 32-bit alignment. 

 

In this case are the missing bytes meant, which are put at the end of the frame to achieve the minimum ethernet frame length of 64 byte.
0 Kudos
Altera_Forum
Honored Contributor II
614 Views

Oh sorry, I misunderstood that... Did You check LwIP thread?

0 Kudos
Reply