This patch seems orthogonal to the rest of this series. Shouldn't this be a separate patch?
On Wed, Apr 12, 2017 at 7:58 AM, Matias Elo <matias....@nokia.com> wrote: > There is no need to fail if the requested burst length is larger than the > maximum supported. Simply use the maximum supported value instead. > > Signed-off-by: Matias Elo <matias....@nokia.com> > --- > platform/linux-generic/pktio/socket.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/platform/linux-generic/pktio/socket.c > b/platform/linux-generic/pktio/socket.c > index 89c6d46..e8b2e47 100644 > --- a/platform/linux-generic/pktio/socket.c > +++ b/platform/linux-generic/pktio/socket.c > @@ -628,7 +628,7 @@ static int sock_mmsg_recv(pktio_entry_t *pktio_entry, int > index ODP_UNUSED, > int i; > > if (odp_unlikely(len > ODP_PACKET_SOCKET_MAX_BURST_RX)) > - return -1; > + len = ODP_PACKET_SOCKET_MAX_BURST_RX; > > odp_ticketlock_lock(&pktio_entry->s.rxl); > > @@ -801,7 +801,7 @@ static int sock_mmsg_send(pktio_entry_t *pktio_entry, int > index ODP_UNUSED, > int n, i; > > if (odp_unlikely(len > ODP_PACKET_SOCKET_MAX_BURST_TX)) > - return -1; > + len = ODP_PACKET_SOCKET_MAX_BURST_TX; > > odp_ticketlock_lock(&pktio_entry->s.txl); > > -- > 2.7.4 >