[dpdk-dev] [PATCH] net/mlx5: check Tx queue size overflow
Yongseok Koh
yskoh at mellanox.com
Wed May 1 02:56:44 CEST 2019
> On Apr 30, 2019, at 5:43 PM, Yongseok Koh <yskoh at mellanox.com> wrote:
>
>>
>> On Apr 30, 2019, at 1:46 PM, Stephen Hemminger <stephen at networkplumber.org> wrote:
>>
>> On Tue, 30 Apr 2019 12:04:26 -0700
>> Yongseok Koh <yskoh at mellanox.com> wrote:
>>
>>> + priv->sh->device_attr.orig_attr.max_qp_wr) {
>>> + DRV_LOG(DEBUG,
>>> + "port %u Tx WQEBB count exceeds the limit (%d),"
>>> + " try smaller queue size again",
>>> + dev->data->port_id,
>>
>> The patch looks good, but it could be improved to make life easier
>> for the users.
>>
>> This is an error, why not print it at NOTICE level since DEBUG messages
>> are usually suppressed.
>
> Okay, better to set ERROR.
>
>> Please don't break long lines in log messages.
>
> That doesn't add new-line and mlx5 specific coding style.
>
>> The latter part of the message
>> is obvious, why not skip it.
>
> Because not all users know what WQEBB means, I wanted to make user's life easier
> by informing what to do.
>
>> Also since max_qp_wr is __u32, the print format should be %u
>
> It was copied from the removing line but agree to change.
No, it is 'int'. Please check 'struct ibv_device_attr'.
>
>> Instead:
>> DRV_LOG(NOTICE,
>> "port %u Tx WQEBB count (%u) exceeds the limit (%u)",
>> dev->data->port_id,
>> txq_calc_wqebb_cnt(tmpl),
>> priv->sh->device_attr.orig_attr.max_qp_wr);
>>
>> Also, should it have a Fixes: tag to backport to stable?
>
> Okay, no harm to give more information.
>
>
> Thanks for the review.
> Yongseok
More information about the dev
mailing list