[dpdk-dev] [dpdk-stable] [PATCH] net/mrvl: fix mbuf to bpool lookup

Ferruh Yigit ferruh.yigit at intel.com
Fri Jan 26 19:09:01 CET 2018


On 1/26/2018 7:55 AM, Tomasz Duszynski wrote:
> From: Natalie Samsonov <nsamsono at marvell.com>
> 
> Since in DPDK 17.11 port type was changed from uint8_t to uint16_t
> the MBUF_INVALID_PORT value became 0xffff but in mrvl_tx_pkt_burst()
> when trying to lookup bpool using mbuf port, we check if the port
> is invalid according to value 0xff. This causes segmentation fault.
> 
> Solution: since the valid port value cannot exceed RTE_MAX_ETHPORTS
> (size of bpool lookup table) any other values consider as invalid so
> the packet should be returned to DPDK pool.
> 
> Fixes: afb4d0d0bf91 ("net/mrvl: add Rx/Tx support")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Natalie Samsonov <nsamsono at marvell.com>

Applied to dpdk-next-net/master, thanks.


More information about the dev mailing list