]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: aquantia: Fixed incorrect buff->len calculation.
authorPavel Belous <pavel.belous@aquantia.com>
Mon, 20 Feb 2017 19:36:48 +0000 (22:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Feb 2017 22:11:09 +0000 (17:11 -0500)
commit828a6a4a068af7565b2de8edc67fca09ed0e1473
tree5bfd232af73b0fccafaf68724846b97649c8eb64
parent1a40b30bd90f9a59c53ce3445d1b4a5c2f614bd5
net: ethernet: aquantia: Fixed incorrect buff->len calculation.

rxd_wb->pkt_len is the total length of the packet.
If we received a large packet (with length > AQ_CFG_RX_FRAME_MAX) then we
will get multiple buffers. We need to fix the length of the last buffer.

Signed-off-by: Pavel Belous <pavel.belous@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c