Skip to content

Commit

Permalink
net/axgbe: remove freeing buffer in scattered Rx
Browse files Browse the repository at this point in the history
[ upstream commit e867021 ]

Removed freeing of mbuf in scattered Rx as it should not be freed in rx.

Fixes: 965b312 ("net/axgbe: support scattered Rx")

Signed-off-by: Bhagyada Modali <bhagyada.modali@amd.com>
Acked-by: Chandubabu Namburu <chandu@amd.com>
  • Loading branch information
Bhagyada Modali authored and kevintraynor committed Oct 11, 2022
1 parent c57a09f commit 88eb5f0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/net/axgbe/axgbe_rxtx.c
Expand Up @@ -459,14 +459,11 @@ uint16_t eth_axgbe_recv_scattered_pkts(void *rx_queue,
memset((void *)(&desc->read.desc2), 0, 8);
AXGMAC_SET_BITS_LE(desc->read.desc3, RX_NORMAL_DESC3, OWN, 1);

if (!eop) {
rte_pktmbuf_free(mbuf);
if (!eop)
goto next_desc;
}

first_seg->pkt_len = pkt_len;
rxq->bytes += pkt_len;
mbuf->next = NULL;

first_seg->port = rxq->port_id;
if (rxq->pdata->rx_csum_enable) {
Expand Down

0 comments on commit 88eb5f0

Please sign in to comment.