diff mbox series

[v3,WIP,2/7] linux-gen: packet: drop unused function

Message ID 1515884413-15125-3-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [v3,WIP,1/7] validation: ipsec: fix packet checksums | expand

Commit Message

Github ODP bot Jan. 13, 2018, 11 p.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Drop unused packet_parse_l3_l4() function

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 389 (lumag:parse-checksums)
 ** https://github.com/Linaro/odp/pull/389
 ** Patch: https://github.com/Linaro/odp/pull/389.patch
 ** Base sha: 49ebafae0edebbc750742d8874ad0a7588286dea
 ** Merge commit sha: e6a448356c90f142122e5b5d4796bdf19e04e8c6
 **/
 platform/linux-generic/include/odp_packet_internal.h |  6 ------
 platform/linux-generic/odp_packet.c                  | 16 ----------------
 2 files changed, 22 deletions(-)
diff mbox series

Patch

diff --git a/platform/linux-generic/include/odp_packet_internal.h b/platform/linux-generic/include/odp_packet_internal.h
index 62888f8a5..43c8da5cb 100644
--- a/platform/linux-generic/include/odp_packet_internal.h
+++ b/platform/linux-generic/include/odp_packet_internal.h
@@ -298,12 +298,6 @@  int packet_alloc_multi(odp_pool_t pool_hdl, uint32_t len,
 int packet_parse_layer(odp_packet_hdr_t *pkt_hdr,
 		       odp_proto_layer_t layer);
 
-/* Perform L3 and L4 parsing up to a given protocol layer */
-int packet_parse_l3_l4(odp_packet_hdr_t *pkt_hdr,
-		       odp_proto_layer_t layer,
-		       uint32_t l3_offset,
-		       uint16_t ethtype);
-
 /* Reset parser metadata for a new parse */
 void packet_parse_reset(odp_packet_hdr_t *pkt_hdr);
 
diff --git a/platform/linux-generic/odp_packet.c b/platform/linux-generic/odp_packet.c
index 83a880947..a0bc8911a 100644
--- a/platform/linux-generic/odp_packet.c
+++ b/platform/linux-generic/odp_packet.c
@@ -2312,22 +2312,6 @@  int packet_parse_layer(odp_packet_hdr_t *pkt_hdr,
 				   seg_len, layer);
 }
 
-int packet_parse_l3_l4(odp_packet_hdr_t *pkt_hdr,
-		       odp_proto_layer_t layer,
-		       uint32_t l3_offset,
-		       uint16_t ethtype)
-{
-	uint32_t seg_len = 0;
-	void *base = packet_map(pkt_hdr, l3_offset, &seg_len, NULL);
-
-	if (seg_len == 0)
-		return -1;
-
-	return packet_parse_common_l3_l4(&pkt_hdr->p, base, l3_offset,
-					 pkt_hdr->frame_len, seg_len,
-					 layer, ethtype);
-}
-
 int odp_packet_parse(odp_packet_t pkt, uint32_t offset,
 		     const odp_packet_parse_param_t *param)
 {