lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <030e01dbe5b3$50ee41e0$f2cac5a0$@trustnetic.com>
Date: Wed, 25 Jun 2025 17:27:05 +0800
From: Jiawen Wu <jiawenwu@...stnetic.com>
To: "'Michal Swiatkowski'" <michal.swiatkowski@...ux.intel.com>
Cc: <netdev@...r.kernel.org>,
	<andrew+netdev@...n.ch>,
	<davem@...emloft.net>,
	<edumazet@...gle.com>,
	<kuba@...nel.org>,
	<pabeni@...hat.com>,
	<horms@...nel.org>,
	<mengyuanlou@...-swift.com>,
	<duanqiangwen@...-swift.com>
Subject: RE: [PATCH net v2 3/3] net: ngbe: specify IRQ vector when the number of VFs is 7

> > diff --git a/drivers/net/ethernet/wangxun/ngbe/ngbe_type.h b/drivers/net/ethernet/wangxun/ngbe/ngbe_type.h
> > index 6eca6de475f7..b6252b272364 100644
> > --- a/drivers/net/ethernet/wangxun/ngbe/ngbe_type.h
> > +++ b/drivers/net/ethernet/wangxun/ngbe/ngbe_type.h
> > @@ -87,7 +87,8 @@
> >  #define NGBE_PX_MISC_IC_TIMESYNC		BIT(11) /* time sync */
> >
> >  #define NGBE_INTR_ALL				0x1FF
> > -#define NGBE_INTR_MISC(A)			BIT((A)->num_q_vectors)
> > +#define NGBE_INTR_MISC(A)			((A)->num_vfs == 7 ? \
> > +						 BIT(0) : BIT((A)->num_q_vectors))
> 
> Isn't it problematic that configuring interrupts is done in
> ndo_open/ndo_stop on PF, but it depends on numvfs set in otther context.
> If you start with misc on index 8 and after that set numvfs to 7 isn't
> it fail?

When setting num_vfs, wx->setup_tc() is called to re-init the interrupt scheme.


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ