RE: dev Digest, Vol 440, Issue 47

2023-01-25 Thread Benoit Ganne (bganne)
> I would like to convert our in-house tool into a high performance traffic > generator and it is written in Python. > Is it possible to use any of the user space TCP stack by compiling into > shared libraries and access it via Python using ctypes? > Could you please let me know any viable solution

Re: [dpdk-dev] [PATCH] net/mlx5: fix link state update

2020-03-30 Thread Benoit Ganne (bganne)
> From: Matan Azrad >> From: BenoƮt Ganne >> mlx5 PMD refuses to update link state if link speed is defined but >> status is down or if link speed is undefined but status is up, >> even if the ioctl() succeeded. >> This prevents application to detect link up/down event, especially >> when the lin

Re: [dpdk-dev] [PATCH] net/mlx5: fix link state update

2020-03-30 Thread Benoit Ganne (bganne)
Hi Matan, mlx5 PMD refuses to update link state if link speed is defined but status is down or if link speed is undefined but status is up, even if the ioctl() succeeded. This prevents application to detect link up/down event, especially when the link speed is not correctl

Re: [dpdk-dev] [PATCH] net/mlx5: fix link state update

2020-03-30 Thread Benoit Ganne (bganne)
> Why link speed is undefined? > Old kernel? > Kernel mlx5 driver issue? > Do you know? Seems to be a bug in kernel mlx5 driver: http://mails.dpdk.org/archives/users/2020-March/004758.html I still think this test is too strict, and from what I can see mlx4 PMD do not implement it (even if it use

Re: [dpdk-dev] [RFC] ethdev: use special speed for virtual Ethernet devices

2020-04-01 Thread Benoit Ganne (bganne)
Hi all, >> Alternatively, we could expand the meaning of ETH_SPEED_NUM_NONE: >> -#define ETH_SPEED_NUM_NONE 0 /**< Not defined */ >> +#define ETH_SPEED_NUM_NONE 0 /**< Not defined or unknown >> (virtual device) */ > Yes I agree with extending the comment for NONE. >> The special va

Re: [dpdk-dev] [PATCH] net/mlx5: fix link state update

2020-04-01 Thread Benoit Ganne (bganne)
Hi Matan, >> Seems to be a bug in kernel mlx5 driver: > 1. To check with our driver team what is the issue to report a VF link Note that even with the kernel patch, there still seem to be a valid case where it can return SPEED_UNKNOWN. If this is true, then I don't think we can rely on valid lin

Re: [dpdk-dev] [PATCH] net/mlx5: fix link state update

2020-04-07 Thread Benoit Ganne (bganne)
>> 2. To change documentation of ethdev API to say that only link status >> is mandatory report. (all others "nice to have" or "best effort"): >> This is for you - I suggest to send prior patch to ethdev >> for this and let the community to decide. > Matan, Benoit, I guess nobody tried to