[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <01fb01dbb003$5b920bd0$12b62370$@trustnetic.com>
Date: Fri, 18 Apr 2025 09:44:00 +0800
From: Jiawen Wu <jiawenwu@...stnetic.com>
To: "'Jakub Kicinski'" <kuba@...nel.org>
Cc: <netdev@...r.kernel.org>,
<andrew+netdev@...n.ch>,
<davem@...emloft.net>,
<edumazet@...gle.com>,
<pabeni@...hat.com>,
<horms@...nel.org>,
<dlemoal@...nel.org>,
<jdamato@...tly.com>,
<saikrishnag@...vell.com>,
<vadim.fedorenko@...ux.dev>,
<przemyslaw.kitszel@...el.com>,
<ecree.xilinx@...il.com>,
<rmk+kernel@...linux.org.uk>,
<mengyuanlou@...-swift.com>
Subject: RE: [PATCH net-next v3 1/2] net: txgbe: Support to set UDP tunnel port
On Fri, Apr 18, 2025 7:58 AM, Jakub Kicinski wrote:
> On Thu, 17 Apr 2025 16:03:27 +0800 Jiawen Wu wrote:
> > @@ -392,6 +393,8 @@ static int txgbe_open(struct net_device *netdev)
> ^^^^^^^^^^
> >
> > txgbe_up_complete(wx);
> >
> > + udp_tunnel_nic_reset_ntf(netdev);
> ^^^^^^^^^^^^^^^^^^^^^^^^
> > return 0;
>
> > + .flags = UDP_TUNNEL_NIC_INFO_OPEN_ONLY,
>
> Documentation says:
>
> /* Device only supports offloads when it's open, all ports
> * will be removed before close and re-added after open.
> */
> UDP_TUNNEL_NIC_INFO_OPEN_ONLY = BIT(1),
>
> Are you sure you have to explicitly reset?
Yes. Stop device will reset hardware, which reset UDP port to the default value.
So it has to re-configure the ports.
Powered by blists - more mailing lists