提交 d3669ca9 编写于 作者: S Saeed Mahameed

net/mlx5e: Fix port buffer function documentation format

This patch fixes compiler warnings:
In drivers/.../mlx5/core/en/port_buffer.c:190:
warning: Function parameter or member 'pfc_en' not described...
...
warning: Function parameter or member 'change' not described...

Fixes: 0696d608 ("net/mlx5e: Receive buffer configuration")
Reviewed-by: NEran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
上级 092ead48
...@@ -165,23 +165,23 @@ static int update_xoff_threshold(struct mlx5e_port_buffer *port_buffer, ...@@ -165,23 +165,23 @@ static int update_xoff_threshold(struct mlx5e_port_buffer *port_buffer,
} }
/** /**
* update_buffer_lossy() * update_buffer_lossy - Update buffer configuration based on pfc
* mtu: device's MTU * @mtu: device's MTU
* pfc_en: <input> current pfc configuration * @pfc_en: <input> current pfc configuration
* buffer: <input> current prio to buffer mapping * @buffer: <input> current prio to buffer mapping
* xoff: <input> xoff value * @xoff: <input> xoff value
* port_buffer: <output> port receive buffer configuration * @port_buffer: <output> port receive buffer configuration
* change: <output> * @change: <output>
* *
* Update buffer configuration based on pfc configuraiton and priority * Update buffer configuration based on pfc configuraiton and
* to buffer mapping. * priority to buffer mapping.
* Buffer's lossy bit is changed to: * Buffer's lossy bit is changed to:
* lossless if there is at least one PFC enabled priority mapped to this buffer * lossless if there is at least one PFC enabled priority
* lossy if all priorities mapped to this buffer are PFC disabled * mapped to this buffer lossy if all priorities mapped to
* this buffer are PFC disabled
* *
* Return: * @return: 0 if no error,
* Return 0 if no error. * sets change to true if buffer configuration was modified.
* Set change to true if buffer configuration is modified.
*/ */
static int update_buffer_lossy(unsigned int mtu, static int update_buffer_lossy(unsigned int mtu,
u8 pfc_en, u8 *buffer, u32 xoff, u8 pfc_en, u8 *buffer, u32 xoff,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册