Matias Elo(matiaselo) replied on github web page:
platform/linux-generic/pktio/socket.c
line 14
@@ -643,6 +643,10 @@ static int sock_mmsg_recv(pktio_entry_t *pktio_entry, int
index ODP_UNUSED,
uint16_t pkt_len = msgvec[i].msg_len;
int ret;
+ if (odp_unlikely(msgvec[i].msg_hdr.msg_flags & MSG_TRUNC)) {
+ odp_packet_free(pkt);
Comment:
The odp_pktin_maxlen() API states:
> Maximum frame length in bytes that the packet IO interface can receive.
I interpret this so that the application shouln't see packets which exceed
pktin max length.
> muvarov wrote
> same here.
>> muvarov wrote
>> maybe to just set error bit and deliver this packet to application?
https://github.com/Linaro/odp/pull/397#discussion_r162109686
updated_at 2018-01-17 16:45:47