Skip to content

ibmvnic: fix ethtool -L causing system to hang

Diego Domingos requested to merge didoming/centos-stream-9:bz2047928 into main

Bugzilla: http://bugzilla.redhat.com/2047928

Brew: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=42918822

Tested:

Tested the patched kernel using following script and not get any  
errors/hangs:  
  
nic=env4  
  
for i in `seq 1 100`  
do  
    echo "===== Iteration $i done @ `date`===== "  
    ethtool -l $nic |grep -A 2 Current  
    ethtool -L $nic rx 16 tx 16  
    sleep 3  
    ethtool -l $nic |grep -A 2 Current  
    ethtool -L $nic rx 2 tx 2  
    sleep 3  
  
done  
  
  
  
  
  
===== Iteration 99 done @ Wed Feb  9 16:25:27 CST 2022=====   
Current hardware settings:  
RX:		2  
TX:		2  
Current hardware settings:  
RX:		9  
TX:		9  
===== Iteration 100 done @ Wed Feb  9 16:25:37 CST 2022=====   
Current hardware settings:  
RX:		2  
TX:		2  
Current hardware settings:  
RX:		9  
TX:		9  
  
(0) root @ ltczep10-lp13: /root/suka/change-queues.d  
5.14.0-57.bz2047928_test.el9.ppc64le  
  
(0) root @ ltczep10-lp13: /root/suka/change-queues.d  
driver: ibmvnic  
version: 1.0.1  
firmware-version: 001200292003  
expansion-rom-version:   
bus-info:   
supports-statistics: yes  
supports-test: no  
supports-eeprom-access: no  
supports-register-dump: no  
supports-priv-flags: yes  
  
(0) root @ ltczep10-lp13: /root/suka/change-queues.d  
filename:       /lib/modules/5.14.0-57.bz2047928_test.el9.ppc64le/kernel/drivers/net/ethernet/ibm/ibmvnic.ko.xz  
version:        1.0.1  
description:    IBM System i/p Virtual NIC Driver  
rhelversion:    9.0  
srcversion:     DC67C5C84E9E9CDD3811FD0  
vermagic:       5.14.0-57.bz2047928_test.el9.ppc64le SMP mod_unload modversions mprofile-kernel relocatable   
  
(0) root @ ltczep10-lp13: /root/suka/change-queues.d  

Signed-off-by: Diego Domingos didoming@redhat.com

Edited by Prarit Bhargava

Merge request reports