[dpdk-dev] [PATCH] net/ixgbe: add queue index check in filter

Zhao1, Wei wei.zhao1 at intel.com
Wed Jul 19 05:50:14 CEST 2017


Hi,  Ferruh

> -----Original Message-----
> From: Yigit, Ferruh
> Sent: Tuesday, July 18, 2017 6:44 PM
> To: Zhao1, Wei <wei.zhao1 at intel.com>; dev at dpdk.org
> Cc: Lu, Wenzhuo <wenzhuo.lu at intel.com>
> Subject: Re: [dpdk-dev] [PATCH] net/ixgbe: add queue index check in filter
> 
> On 7/17/2017 7:13 AM, Wei Zhao wrote:
> > Add queue index check when create filter rule, or filter with invalid
> > queue id can be created successfully.
> >
> > Signed-off-by: Wei Zhao <wei.zhao1 at intel.com>
> 
> <...>
> 
> > @@ -1177,6 +1178,9 @@ ixgbe_parse_l2_tn_filter(struct rte_eth_dev
> *dev,
> >  		return -rte_errno;
> >  	}
> >
> > +	if (filter->queue >= dev->data->nb_rx_queues)
> > +		return -rte_errno;
> > +
> 
> This is giving following build error [1].
> 
> [1]
> .../drivers/net/ixgbe/ixgbe_flow.c:1180:6:
> error: use of undeclared identifier 'filter'
>         if (filter->queue >= dev->data->nb_rx_queues)
>             ^

Thank you, a new  v2 patch has been commit to DPDK.org


More information about the dev mailing list