]> git.dujemihanovic.xyz Git - u-boot.git/commit
eth: asix88179: packet drop when receiving large fragmented packets
authorKhoa Hoang <admin@khoahoang.com>
Fri, 8 Nov 2024 05:51:36 +0000 (21:51 -0800)
committerMarek Vasut <marex@denx.de>
Mon, 25 Nov 2024 18:11:19 +0000 (19:11 +0100)
commit05278af8b3df1c0c02e345ccf4c8c59bd0111f68
tree4910a9104bb6e1eb205984670d62d4f81f0c5167
parent9713c15d2e62d51b154f43c70632e9f5f7ef1ff8
eth: asix88179: packet drop when receiving large fragmented packets

The ASIX 88179A drops packets when receiving fragmented packets larger
than the MTU size due to an insufficient URB buffer size. This change
synchronizes the URB buffer size with the configuration used in the
Linux kernel, resolving the packet drop issue.

To reproduce the issue, set the following configuration:
    CONFIG_IP_DEFRAG=y
    CONFIG_TFTP_BLOCKSIZE=16352

Then, run the `tftp` command. It will fail with a timeout error:

    U-Boot> tftp zero.bin
    Using ax88179_eth device
    TFTP from server 10.0.0.196; our IP address is 10.0.0.18
    Filename 'zero.bin'
    Load address: 0x10000000
    Loading: T T T T T T T T T T T
    Retry count exceeded; starting again

Signed-off-by: Khoa Hoang <admin@khoahoang.com>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/usb/eth/asix88179.c