commit | d66503c43c0036d8db526d6c47c149bb971ac0b9 | [log] [tgz] |
---|---|---|
author | Matteo Croce <mcroce@redhat.com> | Sun Jul 28 19:35:49 2019 +0200 |
committer | David S. Miller <davem@davemloft.net> | Mon Jul 29 11:08:43 2019 -0700 |
tree | 502271a53ba3f161e17a72796ada6dcbdcd04ba3 | |
parent | 55b40dbf0e76b4bfb9d8b3a16a0208640a9a45df [diff] |
mvpp2: refactor the HW checksum setup The hardware can only offload checksum calculation on first port due to the Tx FIFO size limitation, and has a maximum L3 offset of 128 bytes. Document this in a comment and move duplicated code in a function. Fixes: 576193f2d579 ("net: mvpp2: jumbo frames support") Signed-off-by: Matteo Croce <mcroce@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>