Re: [PATCH net v2 2/2] net/mlx5: Avoid panic when setting vport rate

2019-03-05 Thread Saeed Mahameed
On Mon, 2019-03-04 at 15:55 +, Roi Dayan wrote: > > On 04/03/2019 10:27, xiangxia.m@gmail.com wrote: > > From: Tonghao Zhang > > > > If we try to set VFs rate on a VF (not PF) net device, the kernel > > will be crash. The commands are show as below: > > > > $ echo 2 > /sys/class/net/$ML

Re: [PATCH net v2 2/2] net/mlx5: Avoid panic when setting vport rate

2019-03-04 Thread Roi Dayan
On 04/03/2019 10:27, xiangxia.m@gmail.com wrote: > From: Tonghao Zhang > > If we try to set VFs rate on a VF (not PF) net device, the kernel > will be crash. The commands are show as below: > > $ echo 2 > /sys/class/net/$MLX_PF0/device/sriov_numvfs > $ ip link set $MLX_VF0 vf 0 max_tx_rate

[PATCH net v2 2/2] net/mlx5: Avoid panic when setting vport rate

2019-03-04 Thread xiangxia . m . yue
From: Tonghao Zhang If we try to set VFs rate on a VF (not PF) net device, the kernel will be crash. The commands are show as below: $ echo 2 > /sys/class/net/$MLX_PF0/device/sriov_numvfs $ ip link set $MLX_VF0 vf 0 max_tx_rate 2 min_tx_rate 1 If not applied the first patch ("net/mlx5: Avoid pa