[dpdk-dev] [PATCH] net/mlx5: fix switch port id when representor in bonding

Bill Zhou dongzhou at nvidia.com
Sun Nov 15 13:36:27 CET 2020



> -----Original Message-----
> From: Ferruh Yigit <ferruh.yigit at intel.com>
> Sent: Saturday, November 14, 2020 2:54 AM
> To: Bill Zhou <dongz at mellanox.com>; Slava Ovsiienko
> <viacheslavo at nvidia.com>; Matan Azrad <matan at nvidia.com>; NBU-Contact-
> Thomas Monjalon <thomas at monjalon.net>
> Cc: stable at dpdk.org; dev at dpdk.org; Raslan Darawsheh <rasland at nvidia.com>;
> Bill Zhou <dongzhou at nvidia.com>
> Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix switch port id when representor in
> bonding
> 
> On 11/4/2020 6:04 AM, Bill Zhou wrote:
> > From: Bill Zhou <dongzhou at nvidia.com>
> >
> > In the bonding configurations the port switch id for representors was
> > composed of pf index in bonding as the 1 msb and the representor's
> > index as the remaining 15 lsbs. The special corner case for the host
> > PF representor on BF setups with representor id 0xFFFF was missed as well.
> >
> > The new switch port id consists of 4 msbs for the pf bonding index and
> > the remaining 12 lsbs for the representor index. The switch port id
> > ranges for each type of representors are as follows:
> >
> > Uplink representor(AKA master): 0xFFFF Host PF representor:
> > 0x<pf_bond>FFF VF representor: 0x<pf_bond>[0-FFE]
> >
> > Fixes: bee57a0a3565 ("net/mlx5: update switch port id in bonding
> > configuration")
> > Cc: stable at dpdk.org
> >
> > Signed-off-by: Bill Zhou <dongzhou at nvidia.com>
> > Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
> 
> Sign off tag is updated as following in the next-net, to keep consistent to
> previously used name:
>   Signed-off-by: Dong Zhou <dongzhou at nvidia.com>

Yes, it's fine.


More information about the dev mailing list