Re: [dpdk-dev] [PATCH 2/7] net/mlx5: remove redundant objects in probe code

2018-06-12 Thread Adrien Mazarguil
On Sun, Jun 10, 2018 at 11:00:59AM +, Xueming(Steven) Li wrote: > Ack. Trivial issue related to other patch found , not sure whether it good to > fix it here. > > - config.tso = ((device_attr_ex.tso_caps.max_tso > 0) && > > - (device_attr_ex.tso_caps.supporte

Re: [dpdk-dev] [PATCH 2/7] net/mlx5: remove redundant objects in probe code

2018-06-10 Thread Xueming(Steven) Li
Ack. Trivial issue related to other patch found , not sure whether it good to fix it here. > -Original Message- > From: dev On Behalf Of Adrien Mazarguil > Sent: Saturday, May 26, 2018 12:35 AM > To: Shahaf Shuler > Cc: dev@dpdk.org > Subject: [dpdk-dev] [PATCH 2/7

[dpdk-dev] [PATCH 2/7] net/mlx5: remove redundant objects in probe code

2018-05-25 Thread Adrien Mazarguil
This patch gets rid of redundant calls to open the device and query its attributes in order to simplify the code. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5.c | 60 +--- 1 file changed, 28 insertions(+), 32 deletions(-) diff --git a/drivers