imx6ull tcp checksum

cancel
Showing results for 
Search instead for 
Did you mean: 

imx6ull tcp checksum

437 Views
vladimirchernin
Contributor II

hi!

We have a board based on imx6ull with 2 RMIIs connected and running Linux kernel 4.9

We see a problem after MTU size is over 1100 bytes TCP stack checksum is zero and its start retransmissions

and connection very slow.

By the default, the checksum is hardware offload is on.if we set it off by ethtool and it's calculated on CPU

TCP checksum calculated properly but CPU load is high.

Its seem like problem in NXPs BSP 

please help us to solve the problem!

Regards

Vladimir

Labels (3)
0 Kudos
8 Replies

173 Views
vladimirchernin
Contributor II

hi!

you need to connect via RMII Mac to Mac mode and make TCP connections with different MTU sizes 

0 Kudos

173 Views
Yuri
NXP TechSupport
NXP TechSupport

Hello,

  REF_CLK of 50MHz is needed for RMII. Is it provided / configured correctly ?

Please check.

Regards,

Yuri.

0 Kudos

173 Views
vladimirchernin
Contributor II

hi!

in my dts it defined like this

&fec2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet2>;
phy-mode = "rmii";
status = "okay";
fixed-link {
speed = <100>;
full-duplex;
};
};

&fec1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet1>;
phy-mode = "rmii";
status = "okay";
fixed-link {
speed = <100>;
full-duplex;
};
};

and clock is 50MHZ we don't change anything regarding the clock

it is working but not calculates TCP CRC and its gets 0 value in the packet depend on MTU size

Regards

Vladimir

0 Kudos

173 Views
Yuri
NXP TechSupport
NXP TechSupport

Hello,

Is it possible to look at the MAC-to-MAC connection scheme?

Is it as shown FIGURE 1 of the RMII specs? 

 

http://ebook.pldworld.com/_eBook/-Telecommunications,Networks-/TCPIP/RMII/rmii_rev12.pdf   

Regards,

Yuri.

0 Kudos

173 Views
vladimirchernin
Contributor II

hi!

please see schematic

RMII works and it has a problem only from 1200 MTU size  and more

when imx6ull calculate CRC for TCP stack

its looks like BSP bug?   

thanks

vladimir

0 Kudos

173 Views
Yuri
NXP TechSupport
NXP TechSupport

Hello,

  Do You use fixed-link? 

Is NXP BSP applied (without custom modifications)?

Is it possible to enable the pause frame to check performance issue(s)? 

Regards,

Yuri.

0 Kudos

173 Views
Yuri
NXP TechSupport
NXP TechSupport

Hello,

  Let me know how can I reproduce the issue oni.MX 6ULL EVK ?

Regards,

Yuri.

0 Kudos