aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuha-Matti Tilli <juha-matti.tilli@iki.fi>2018-09-13 20:13:47 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2018-09-19 21:48:17 +0300
commitb06b87af01c29544a46b7e25b20d099d4850148c (patch)
treeff95afd4cbf313bfa22bd10e4eed27dfc97a4c14
parent0e9e5654cf04c6f92a3539fec06f6cf51a86168d (diff)
downloadodp-monarch_lts.tar.gz
linux-gen: netmap: remove minimum frame len checkmonarch_lts
Checking the minimum frame length is unnecessary as netmap drops truncated frames internally. Signed-off-by: Matias Elo <matias.elo@nokia.com> Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Juha-Matti Tilli <juha-matti.tilli@iki.fi> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
-rw-r--r--platform/linux-generic/pktio/netmap.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/platform/linux-generic/pktio/netmap.c b/platform/linux-generic/pktio/netmap.c
index 3017e4031..45b193d1c 100644
--- a/platform/linux-generic/pktio/netmap.c
+++ b/platform/linux-generic/pktio/netmap.c
@@ -606,11 +606,6 @@ static inline int netmap_pkt_to_odp(pktio_entry_t *pktio_entry,
return -1;
}
- if (odp_unlikely(len < _ODP_ETH_LEN_MIN)) {
- ODP_ERR("RX: Frame truncated: %" PRIu16 "\n", len);
- return -1;
- }
-
if (pktio_cls_enabled(pktio_entry)) {
if (cls_classify_packet(pktio_entry, (const uint8_t *)buf, len,
len, &pool, &parsed_hdr))