• Aya Levin's avatar
    net/mlx5e: Read max WQEBBs on the SQ from firmware · c27bd171
    Aya Levin authored
    Prior to this patch the maximal value for max WQEBBs (WQE Basic Blocks,
    where WQE is a Work Queue Element) on the TX side was assumed to be 16
    (fixed value). All firmware versions till today comply to this. In order
    to be more flexible and resilient, read from FW the corresponding:
    max_wqe_sz_sq. This value describes the maximum WQE size given in bytes,
    thus max WQEBBs is given by the division in WQEBB's byte size. The
    driver uses the top between 16 and the division result. This ensures
    synchronization between driver and firmware and avoids unexpected
    behavior. Store this value on the different SQs (Send Queues) for easy
    access.
    Signed-off-by: default avatarAya Levin <ayal@nvidia.com>
    Reviewed-by: default avatarTariq Toukan <tariqt@nvidia.com>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
    c27bd171
tls_rxtx.c 10.3 KB