Skip to content

Commit

Permalink
net/dpaa2: support ESP in packet type parsing
Browse files Browse the repository at this point in the history
This patch supports ESP packet type in packet parsing.

Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
  • Loading branch information
Gagandeep Singh authored and ferruhy committed May 10, 2022
1 parent 3fa54e3 commit 0bffc64
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/net/dpaa2/dpaa2_rxtx.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,19 @@ dpaa2_dev_rx_parse_slow(struct rte_mbuf *mbuf,
if (BIT_ISSET_AT_POS(annotation->word4, L3_IP_1_OPT_PRESENT |
L3_IP_N_OPT_PRESENT))
pkt_type |= RTE_PTYPE_L3_IPV4_EXT;
if (BIT_ISSET_AT_POS(annotation->word4, L3_PROTO_IPSEC_ESP_PRESENT |
L3_PROTO_ESP_PRESENT))
pkt_type |= RTE_PTYPE_TUNNEL_ESP;

} else if (BIT_ISSET_AT_POS(annotation->word4, L3_IPV6_1_PRESENT |
L3_IPV6_N_PRESENT)) {
pkt_type |= RTE_PTYPE_L3_IPV6;
if (BIT_ISSET_AT_POS(annotation->word4, L3_IP_1_OPT_PRESENT |
L3_IP_N_OPT_PRESENT))
pkt_type |= RTE_PTYPE_L3_IPV6_EXT;
if (BIT_ISSET_AT_POS(annotation->word4, L3_PROTO_IPSEC_ESP_PRESENT |
L3_PROTO_ESP_PRESENT))
pkt_type |= RTE_PTYPE_TUNNEL_ESP;
} else {
goto parse_done;
}
Expand Down

0 comments on commit 0bffc64

Please sign in to comment.