** Description changed:

  [Impact]
  With specific ethtool commands, ethernet does not work
  
  [Test Case]
+ run VF on VM with 3G memory and load VF driver
+ ethtool -G eth0 tx 30000 rx 30000
+ ethtool -G eth0 tx 24 rx 24;ethtool -L eth0 combined 1
+ ethtool -G eth0 tx 32760 rx 32760
+ ethtool -L eth0 combined 32
  
  [Fix]
  3a5a5f06d4d2 net: hns3: revert to old channel when setting new channel num 
fail
  
  [Regression Risk]
  Patch restricted to hns3 driver.
- 
  
  "[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."

** Description changed:

  [Impact]
  With specific ethtool commands, ethernet does not work
  
  [Test Case]
  run VF on VM with 3G memory and load VF driver
  ethtool -G eth0 tx 30000 rx 30000
  ethtool -G eth0 tx 24 rx 24;ethtool -L eth0 combined 1
  ethtool -G eth0 tx 32760 rx 32760
  ethtool -L eth0 combined 32
+ ethernet shall still be functional after these commands
  
  [Fix]
  3a5a5f06d4d2 net: hns3: revert to old channel when setting new channel num 
fail
  
  [Regression Risk]
  Patch restricted to hns3 driver.
  
  "[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."

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1853983

Title:
  [hns-1126]net: hns3: revert to old channel when setting new channel
  num fail

To manage notifications about this bug go to:
https://bugs.launchpad.net/kunpeng920/+bug/1853983/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to