net: ethernet: rmnet: Add support for MAPv5 egress packets
authorSharath Chandra Vurukala <sharathv@codeaurora.org>
Tue, 1 Jun 2021 19:28:36 +0000 (00:58 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jun 2021 00:11:41 +0000 (17:11 -0700)
commitb6e5d27e32ef6089d316ce7e1ecaf595584d4b84
tree4a3655b77448cf59444b097c5db4ca2a380f363c
parente1d9a90a9bfdb0735062d3adb16b07314b4b7b01
net: ethernet: rmnet: Add support for MAPv5 egress packets

Adding support for MAPv5 egress packets.

This involves adding the MAPv5 header and setting the csum_valid_required
in the checksum header to request HW compute the checksum.

Corresponding stats are incremented based on whether the checksum is
computed in software or HW.

New stat has been added which represents the count of packets whose
checksum is calculated by the HW.

Signed-off-by: Sharath Chandra Vurukala <sharathv@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/rmnet/rmnet_config.h
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
include/uapi/linux/if_link.h