dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
* txgbe: vlan offload setting errors
       [not found] <8a4995861fb848aab7045c74949ae10b@huawei.com>
@ 2024-12-09 12:30 ` Wangyunjian(wangyunjian,TongTu)
  2024-12-10  2:00   ` Jiawen Wu
  0 siblings, 1 reply; 4+ messages in thread
From: Wangyunjian(wangyunjian,TongTu) @ 2024-12-09 12:30 UTC (permalink / raw)
  To: dev@dpdk.org, jiawenwu@trustnetic.com, jianwang@trustnetic.com
  Cc: liwei (DT), xiawei (H)

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: txgbe: vlan offload setting errors
  2024-12-09 12:30 ` txgbe: vlan offload setting errors Wangyunjian(wangyunjian,TongTu)
@ 2024-12-10  2:00   ` Jiawen Wu
  2024-12-10  6:12     ` Wangyunjian(wangyunjian,TongTu)
  0 siblings, 1 reply; 4+ messages in thread
From: Jiawen Wu @ 2024-12-10  2:00 UTC (permalink / raw)
  To: 'Wangyunjian(wangyunjian,TongTu)', dev
  Cc: 'liwei (DT)', 'xiawei (H)'

> -----Original Message-----
> From: Wangyunjian(wangyunjian,TongTu) <wangyunjian@huawei.com>
> Sent: Monday, December 9, 2024 8:30 PM
> To: dev@dpdk.org; jiawenwu@trustnetic.com; jianwang@trustnetic.com
> Cc: liwei (DT) <liwei395@huawei.com>; xiawei (H) <xiawei40@huawei.com>
> Subject: txgbe: vlan offload setting errors
> 
> 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."

You should stop the device first, since VLAN offload cannot be changed when Rx ring is enabled.

> 
> 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.

It was set to 1 in txgbe_stop_hw().

> 
> 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
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: txgbe: vlan offload setting errors
  2024-12-10  2:00   ` Jiawen Wu
@ 2024-12-10  6:12     ` Wangyunjian(wangyunjian,TongTu)
  2024-12-10  6:21       ` Jiawen Wu
  0 siblings, 1 reply; 4+ messages in thread
From: Wangyunjian(wangyunjian,TongTu) @ 2024-12-10  6:12 UTC (permalink / raw)
  To: Jiawen Wu, dev@dpdk.org; +Cc: liwei (DT), xiawei (H)

> -----Original Message-----
> From: Jiawen Wu [mailto:jiawenwu@trustnetic.com]
> Sent: Tuesday, December 10, 2024 10:00 AM
> To: Wangyunjian(wangyunjian,TongTu) <wangyunjian@huawei.com>;
> dev@dpdk.org
> Cc: liwei (DT) <liwei395@huawei.com>; xiawei (H) <xiawei40@huawei.com>
> Subject: RE: txgbe: vlan offload setting errors
> 
> > -----Original Message-----
> > From: Wangyunjian(wangyunjian,TongTu) <wangyunjian@huawei.com>
> > Sent: Monday, December 9, 2024 8:30 PM
> > To: dev@dpdk.org; jiawenwu@trustnetic.com; jianwang@trustnetic.com
> > Cc: liwei (DT) <liwei395@huawei.com>; xiawei (H) <xiawei40@huawei.com>
> > Subject: txgbe: vlan offload setting errors
> >
> > 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."
> 
> You should stop the device first, since VLAN offload cannot be changed when Rx
> ring is enabled.

However, I haven't start the port yet. The port is new added.

> 
> >
> > 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.
> 
> It was set to 1 in txgbe_stop_hw().
> 
> >
> > 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
> >


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: txgbe: vlan offload setting errors
  2024-12-10  6:12     ` Wangyunjian(wangyunjian,TongTu)
@ 2024-12-10  6:21       ` Jiawen Wu
  0 siblings, 0 replies; 4+ messages in thread
From: Jiawen Wu @ 2024-12-10  6:21 UTC (permalink / raw)
  To: 'Wangyunjian(wangyunjian,TongTu)', dev
  Cc: 'liwei (DT)', 'xiawei (H)'

> > > 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."
> >
> > You should stop the device first, since VLAN offload cannot be changed when Rx
> > ring is enabled.
> 
> However, I haven't start the port yet. The port is new added.

Enable VLAN offload, then start the device.
It will be configured in txgbe_vlan_offload_config(), which is not limited by
hw->adapter_stopped.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-12-10  6:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <8a4995861fb848aab7045c74949ae10b@huawei.com>
2024-12-09 12:30 ` txgbe: vlan offload setting errors Wangyunjian(wangyunjian,TongTu)
2024-12-10  2:00   ` Jiawen Wu
2024-12-10  6:12     ` Wangyunjian(wangyunjian,TongTu)
2024-12-10  6:21       ` Jiawen Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).