Re: [dpdk-dev] [PATCH] net/af_xdp: fix support of secondary process

2021-10-05 Thread Ferruh Yigit
On 9/23/2021 1:33 PM, Loftus, Ciara wrote: Doing basic operations like info_get or get_stats was broken in af_xdp PMD. The info_get would crash because dev->device was NULL in secondary process. Fix this by doing same initialization as af_packet and tap devices. The get_stats would crash becaus

Re: [dpdk-dev] [PATCH] net/af_xdp: fix support of secondary process

2021-09-23 Thread Loftus, Ciara
> > > > > > > > > > Doing basic operations like info_get or get_stats was broken > > > > > in af_xdp PMD. The info_get would crash because dev->device > > > > > was NULL in secondary process. Fix this by doing same initialization > > > > > as af_packet and tap devices. > > > > > > > > > > The get_s

Re: [dpdk-dev] [PATCH] net/af_xdp: fix support of secondary process

2021-09-21 Thread Stephen Hemminger
> > > > Sent: Friday 3 September 2021 17:15 > > > > To: dev@dpdk.org > > > > Cc: Stephen Hemminger ; > > > > sta...@dpdk.org; xiaolong...@intel.com > > > > Subject: [dpdk-dev] [PATCH] net/af_xdp: fix support of secondary > > process &g

Re: [dpdk-dev] [PATCH] net/af_xdp: fix support of secondary process

2021-09-20 Thread Loftus, Ciara
c: Stephen Hemminger ; > > > sta...@dpdk.org; xiaolong...@intel.com > > > Subject: [dpdk-dev] [PATCH] net/af_xdp: fix support of secondary > process > > > > > > Doing basic operations like info_get or get_stats was broken > > > in af_xdp PMD. The info_get

Re: [dpdk-dev] [PATCH] net/af_xdp: fix support of secondary process

2021-09-20 Thread Stephen Hemminger
; xiaolong...@intel.com > > Subject: [dpdk-dev] [PATCH] net/af_xdp: fix support of secondary process > > > > Doing basic operations like info_get or get_stats was broken > > in af_xdp PMD. The info_get would crash because dev->device > > was NULL in secondary

Re: [dpdk-dev] [PATCH] net/af_xdp: fix support of secondary process

2021-09-20 Thread Loftus, Ciara
> -Original Message- > From: dev On Behalf Of Stephen Hemminger > Sent: Friday 3 September 2021 17:15 > To: dev@dpdk.org > Cc: Stephen Hemminger ; > sta...@dpdk.org; xiaolong...@intel.com > Subject: [dpdk-dev] [PATCH] net/af_xdp: fix support of secondary pro

[dpdk-dev] [PATCH] net/af_xdp: fix support of secondary process

2021-09-03 Thread Stephen Hemminger
Doing basic operations like info_get or get_stats was broken in af_xdp PMD. The info_get would crash because dev->device was NULL in secondary process. Fix this by doing same initialization as af_packet and tap devices. The get_stats would crash because the XDP socket is not open in primary proces