Re: [PATCH net] octeontx2-af: Fix limiting SRIOV VF count logic
Breno Leitao <[email protected]>
| Newsgroups | org.kernel.vger.netdev,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Aug 21, 2026 at 12:15:11PM +0530, [email protected] wrote: > + /* Limit VFs in case VFs are more than LBK channels available */ > + if (vfs > chans) > + vfs = chans; what about using min()? Something as: vfs = min(vfs, chans)