]> git.baikalelectronics.ru Git - kernel.git/commit
net: qualcomm: rmnet: Add support for TX checksum offload
authorSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Sun, 7 Jan 2018 18:36:39 +0000 (11:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jan 2018 18:58:49 +0000 (13:58 -0500)
commitdb884d7cf726068f0173451305b45c7f74532138
treef73dba8f0a63a2f72d517c77535a1f484673ea1d
parent21318307ae72dff33b69c813b4013b513a00b7b8
net: qualcomm: rmnet: Add support for TX checksum offload

TX checksum offload applies to TCP / UDP packets which are not
fragmented using the MAPv4 checksum trailer. The following needs to be
done to have checksum computed in hardware -

1. Set the checksum start offset and inset offset.
2. Set the csum_enabled bit
3. Compute and set 1's complement of partial checksum field in
   transport header.

Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c
drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c