net: ethernet: rmnet: Support for ingress MAPv5 checksum offload
authorSharath Chandra Vurukala <sharathv@codeaurora.org>
Tue, 1 Jun 2021 19:28:35 +0000 (00:58 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jun 2021 00:11:41 +0000 (17:11 -0700)
commite1d9a90a9bfdb0735062d3adb16b07314b4b7b01
tree86842df4061bdc4ac29f8cc61579874a8c5cc020
parent710b797cf61b318995db6d31767a532162db113d
net: ethernet: rmnet: Support for ingress MAPv5 checksum offload

Adding support for processing of MAPv5 downlink packets.
It involves parsing the Mapv5 packet and checking the csum header
to know whether the hardware has validated the checksum and is
valid or not.

Based on the checksum valid bit the corresponding stats are
incremented and skb->ip_summed is marked either CHECKSUM_UNNECESSARY
or left as CHEKSUM_NONE to let network stack revalidate the checksum
and update the respective snmp stats.

Current MAPV1 header has been modified, the reserved field in the
Mapv1 header is now used for next header indication.

Signed-off-by: Sharath Chandra Vurukala <sharathv@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
include/linux/if_rmnet.h
include/uapi/linux/if_link.h