Comment 0 for bug 1853983

Revision history for this message
Fred Kimmy (kongzizaixian) wrote :

"[Bug Description]
After setting new channel num, it needs free old ring memory and
allocate new ring memory. If there is no enough memory and allocate
new ring memory fail, the ring may initialize fail. To make sure
the network interface can work normally, driver should revert the
channel to the old configuration.

[Steps to Reproduce]
1.run VF on VM with 3G memory
2.load VF driver
3.ethtool -G eth0 tx 30000 rx 30000
4.ethtool -G eth0 tx 24 rx 24;ethtool -L eth0 combined 1
5.ethtool -G eth0 tx 32760 rx 32760
6.ethtool -L eth0 combined 32
7.ping

[Actual Results]
netdevice can not work

[Expected Results]
ping ok

[Reproducibility]
Inevitably

[Additional information]
Hardware: D06
Firmware: NA
Kernel: NA

[Resolution]
Revert the channel to the old configuration when allocate new ring memory fail."