txgbe: vlan offload setting errors

Wangyunjian(wangyunjian,TongTu) wangyunjian at huawei.com
Mon Dec 9 13:30:05 CET 2024


Hello everyone, 
I recently added a txgbe port and enabled vlan offload. 
However, when I checked the dpdk logs, I noticed the following error: "2024-12-09T10:32:26.420709+08:00 txgbe_vlan_offload_set(): Please stop port first." 

Upon reviewing the txgbe pmd driver code, I discovered that the variable hw->adapter_stopped is initially set to 0 and is not changed to 1 in the device initialization function (eth_txgbe_dev_init). 
This causes an error in the txgbe_vlan_offload_set function, which checks the value of adapter_stopped and reports an error when it is 0.

How can we fix this issue? Is it possible to set adapter_stopped to 1 in the eth_txgbe_dev_init function? 

Best regards,
Wei Li


More information about the dev mailing list