[dpdk-dev] [PATCH] net/enic: pick the right Rx handler after changing MTU

Hyong Youb Kim hyonkim at cisco.com
Sat Jul 14 07:12:09 CEST 2018


Hi Ferruh,

Please ignore this patch, as it never assigns the default handler to
rx_pkt_burst. We will send a v2. Sorry about that.

On Fri, Jul 13, 2018 at 05:54:52PM -0700, John Daley wrote:
> From: Hyong Youb Kim <hyonkim at cisco.com>
> 
> enic_set_mtu always reverts to the default Rx handler after changing
> MTU. Try to use the simpler, non-scatter handler in this case as well.
[...]
> +	/* Use the non-scatter, simplified RX handler if possible. */
> +	if (enic->rq_count > 0 && enic->rq[0].data_queue_enable == 0) {
> +		PMD_INIT_LOG(DEBUG, " use the non-scatter Rx handler");
> +		eth_dev = enic->rte_dev;
> +		eth_dev->rx_pkt_burst = &enic_noscatter_recv_pkts;
> +	} else {
> +		PMD_INIT_LOG(DEBUG, " use the normal Rx handler");

Here, we should set rx_pkt_burst = enic_recv_pkts

-Hyong


More information about the dev mailing list