History

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.

Sharath Chandra Vurukala committed 5 years ago

Commit e1d9a901 parent 710b7975 files · +96 −12Browse files

Showing the changes to include/uapi (1 of 5 files). Show all

Unified · Split

include/uapi/linux/if_link.h+1−0
@@ -1236,6 +1236,7 @@ enum { · 1235 unmodified lines
1236#define RMNET_FLAGS_INGRESS_MAP_COMMANDS (1U << 1)1236#define RMNET_FLAGS_INGRESS_MAP_COMMANDS (1U << 1)
1237#define RMNET_FLAGS_INGRESS_MAP_CKSUMV4 (1U << 2)1237#define RMNET_FLAGS_INGRESS_MAP_CKSUMV4 (1U << 2)
1238#define RMNET_FLAGS_EGRESS_MAP_CKSUMV4 (1U << 3)1238#define RMNET_FLAGS_EGRESS_MAP_CKSUMV4 (1U << 3)
1239#define RMNET_FLAGS_INGRESS_MAP_CKSUMV5 (1U << 4)
1239 1240
1240enum {1241enum {
1241 IFLA_RMNET_UNSPEC,1242 IFLA_RMNET_UNSPEC,