Re: [PATCH net] octeontx2-af: Fix limiting SRIOV VF count logic
From: Breno Leitao
Date: Fri Aug 21 2026 - 05:24:31 EST
On Fri, Aug 21, 2026 at 12:15:11PM +0530, nshettyj@xxxxxxxxxxx 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)