Re: [dpdk-dev] [PATCH 1/2] net/mlx5: cache the associated network device ifindex

2019-07-19 Thread Slava Ovsiienko
> -Original Message- > From: Stephen Hemminger > Sent: Friday, July 19, 2019 21:03 > To: Slava Ovsiienko > Cc: dev@dpdk.org; Yongseok Koh ; Shahaf Shuler > > Subject: Re: [PATCH 1/2] net/mlx5: cache the associated network device > ifindex > > On Fri, 19 Jul 2019 16:41:38 + > Slava O

Re: [dpdk-dev] [PATCH 1/2] net/mlx5: cache the associated network device ifindex

2019-07-19 Thread Stephen Hemminger
On Fri, 19 Jul 2019 16:41:38 + Slava Ovsiienko wrote: > > -Original Message- > > From: Stephen Hemminger > > Sent: Friday, July 19, 2019 19:16 > > To: Slava Ovsiienko > > Cc: dev@dpdk.org; Yongseok Koh ; Shahaf Shuler > > > > Subject: Re: [PATCH 1/2] net/mlx5: cache the associated

Re: [dpdk-dev] [PATCH 1/2] net/mlx5: cache the associated network device ifindex

2019-07-19 Thread Slava Ovsiienko
> -Original Message- > From: Stephen Hemminger > Sent: Friday, July 19, 2019 19:16 > To: Slava Ovsiienko > Cc: dev@dpdk.org; Yongseok Koh ; Shahaf Shuler > > Subject: Re: [PATCH 1/2] net/mlx5: cache the associated network device > ifindex > > On Fri, 19 Jul 2019 05:31:44 + > Viaches

Re: [dpdk-dev] [PATCH 1/2] net/mlx5: cache the associated network device ifindex

2019-07-19 Thread Stephen Hemminger
On Fri, 19 Jul 2019 05:31:44 + Viacheslav Ovsiienko wrote: > + /* > + * Store associated network device interface index. This index > + * is permanent throughout the lifetime of device. We do not spawn > + * rte_eth_dev ports without associated network device, and if > +

[dpdk-dev] [PATCH 1/2] net/mlx5: cache the associated network device ifindex

2019-07-18 Thread Viacheslav Ovsiienko
The associated device index is retrieved via Netlink request to underlying Infiniband device driver. This network device index is permanent throughout the lifetime of device. We do not spawn the rte_eth_dev ports without associated network device, and if network device is being unbound we get the r