[PATCH] net/mlx5: link status change for bonding cases

Slava Ovsiienko viacheslavo at nvidia.com
Wed Feb 28 18:47:13 CET 2024


> -----Original Message-----
> From: Haifei Luo <haifeil at nvidia.com>
> Sent: Monday, February 26, 2024 2:04 PM
> To: Ori Kam <orika at nvidia.com>; Slava Ovsiienko <viacheslavo at nvidia.com>;
> Matan Azrad <matan at nvidia.com>; Shahaf Shuler <shahafs at nvidia.com>;
> Dariusz Sosnowski <dsosnowski at nvidia.com>; Suanming Mou
> <suanmingm at nvidia.com>
> Cc: dev at dpdk.org; NBU-Contact-Thomas Monjalon (EXTERNAL)
> <thomas at monjalon.net>; Wisam Jaddo <wisamm at nvidia.com>; Raslan
> Darawsheh <rasland at nvidia.com>; Roni Bar Yanai <roniba at nvidia.com>
> Subject: [PATCH] net/mlx5: link status change for bonding cases
> 
> The current implementation of mlx5_dev_interrupt_nl_cb routine first
> compares if event netlink if_index belongs to the same device.
> This is not fully correct for the bonding device since the bonding master and
> slave interface netlink events indicate the bonding link status change as well.
> Add check for if_index is related to the bonding's master/slave.
> 
> The following step is that it compares the device link status before and after the
> netlink event handling. There are also the bonding specifics and it should
> compare the link status of the bonding master to detect the actual status
> change.
> 
> Signed-off-by: Haifei Luo <haifeil at nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>



More information about the dev mailing list