]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3d04cdf7c6b70e4c2e20a9be71884912e8241346
tree86842df4061bdc4ac29f8cc61579874a8c5cc020
parent6ec94435752132470374358d78cff8304e7e7650
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