[dpdk-dev] [PATCH v3 1/5] net/af_xdp: introduce AF XDP PMD driver

Stephen Hemminger stephen at networkplumber.org
Fri Mar 22 16:37:46 CET 2019


On Fri, 22 Mar 2019 10:01:57 +0800
Ye Xiaolong <xiaolong.ye at intel.com> wrote:

> On 03/21, Stephen Hemminger wrote:
> >On Thu, 21 Mar 2019 17:18:41 +0800
> >Xiaolong Ye <xiaolong.ye at intel.com> wrote:
> >  
> >> +
> >> +	if (ret < 0)
> >> +		return -EINVAL;
> >> +
> >> +	return 0;  
> >
> >You could propogate kernel errno into DPDK?
> >	return (ret < 0) ? -errno : 0;
> >  
> 
> Sorry, could you share the advantage of doing this?
> 
> Thanks,
> Xiaolong

Suppose kernel returned -ENOTSUPP or other error, it could go back to
the caller rather than juse invalid.


More information about the dev mailing list