]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbb71121b41620080b4258dadeba52ce3144c33e1
tree4a3655b77448cf59444b097c5db4ca2a380f363c
parent3d04cdf7c6b70e4c2e20a9be71884912e8241346
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