diff mbox series

[v1,1/2] linux-gen: packet: remove unused function

Message ID 1518696012-23633-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v1,1/2] linux-gen: packet: remove unused function | expand

Commit Message

Github ODP bot Feb. 15, 2018, noon UTC
From: Petri Savolainen <petri.savolainen@linaro.org>


Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

---
/** Email created from pull request 482 (psavol:master-packet-cleanup)
 ** https://github.com/Linaro/odp/pull/482
 ** Patch: https://github.com/Linaro/odp/pull/482.patch
 ** Base sha: 41b3fa2cd994a7ef68290a07dcde5564e4640847
 ** Merge commit sha: d02731c67b9c99ffdcddff0e00eb0b173b785a5f
 **/
 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 89009a021..e6b65bab8 100644
--- a/platform/linux-generic/include/odp_packet_internal.h
+++ b/platform/linux-generic/include/odp_packet_internal.h
@@ -299,12 +299,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 b2a22903c..cbb1ae306 100644
--- a/platform/linux-generic/odp_packet.c
+++ b/platform/linux-generic/odp_packet.c
@@ -2274,22 +2274,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)
 {