More efficiently utilize multiple cores when using MAP encoded frames. RPS flow dissector now appropriately decodes IPv4 and IPv6 frames with MAP headers prepended. CRs-Fixed: 681280 Change-Id: Ia4dde47fcc0f3436dcaa71a5160c0a59fe7ed53a Signed-off-by: Harout Hedeshian <harouth@codeaurora.org> [subashab@codeaurora.org: resolve trivial merge conflicts] Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
30 lines
936 B
C
30 lines
936 B
C
#ifndef _NET_MAP_H_
|
|
#define _NET_MAP_H_
|
|
|
|
struct rmnet_map_header_s {
|
|
#ifndef RMNET_USE_BIG_ENDIAN_STRUCTS
|
|
uint8_t pad_len:6;
|
|
uint8_t reserved_bit:1;
|
|
uint8_t cd_bit:1;
|
|
#else
|
|
uint8_t cd_bit:1;
|
|
uint8_t reserved_bit:1;
|
|
uint8_t pad_len:6;
|
|
#endif /* RMNET_USE_BIG_ENDIAN_STRUCTS */
|
|
uint8_t mux_id;
|
|
uint16_t pkt_len;
|
|
} __aligned(1);
|
|
|
|
#define RMNET_MAP_GET_MUX_ID(Y) (((struct rmnet_map_header_s *)Y->data)->mux_id)
|
|
#define RMNET_MAP_GET_CD_BIT(Y) (((struct rmnet_map_header_s *)Y->data)->cd_bit)
|
|
#define RMNET_MAP_GET_PAD(Y) (((struct rmnet_map_header_s *)Y->data)->pad_len)
|
|
#define RMNET_MAP_GET_CMD_START(Y) ((struct rmnet_map_control_command_s *) \
|
|
(Y->data + sizeof(struct rmnet_map_header_s)))
|
|
#define RMNET_MAP_GET_LENGTH(Y) (ntohs( \
|
|
((struct rmnet_map_header_s *)Y->data)->pkt_len))
|
|
|
|
#define RMNET_IP_VER_MASK 0xF0
|
|
#define RMNET_IPV4 0x40
|
|
#define RMNET_IPV6 0x60
|
|
|
|
#endif /* _NET_MAP_H_ */
|