From: Leon Romanovsky Date: Mon, 5 Jan 2026 07:39:29 +0000 (-0500) Subject: Support effective VF bandwidth query in LAG mode X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=976cc7ac1264ff52e05769854b472366107104ec;p=thirdparty%2Fkernel%2Flinux.git Support effective VF bandwidth query in LAG mode Currently, mlx5 driver exposes only the parent function's speed to VFs, providing no way to query the actual effective bandwidth in LAG and MPESW configurations. This limitation prevents userspace and upper-layer software from obtaining accurate bandwidth information, which impacts traffic scheduling decisions. This series addresses this by: 1. Adding mlx5 internal logic to calculate and propagate the effective aggregated LAG speed to all attached vports. The vport speeds are dynamically updated when LAG member link states change. 2. Extending RDMA core with a new ib_query_port_speed() verb and an IB_EVENT_DEVICE_SPEED_CHANGE async event. These interfaces expose the effective port speed to userspace, supporting speeds that are not expressible as IB speed * width (where width is 2^n). This series enables userspace applications to query the effective port speed and receive notifications on speed changes in real-time. In LAG configurations, each mlx5 port reports the aggregated bandwidth of all active LAG members. Signed-off-by: Leon Romanovsky --- 976cc7ac1264ff52e05769854b472366107104ec