commit | c0788f7463f138bb1d30552b3edac442781b4e11 | [log] [tgz] |
---|---|---|
author | Pavel Belous <pavel.belous@aquantia.com> | Mon Feb 20 22:36:48 2017 +0300 |
committer | David S. Miller <davem@davemloft.net> | Mon Feb 20 17:11:09 2017 -0500 |
tree | 5bfd232af73b0fccafaf68724846b97649c8eb64 | |
parent | 55629109d934b2c1b25457424fa72eb94e8c2a26 [diff] |
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>