mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 18:27:13 +07:00
staging: wfx: fix counter overflow
Some weird behaviors were observed when connection is really good and packets are small. It appears that sometime, number of packets in queues can exceed 255 and generate an overflow in field usage_count. Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com> Link: https://lore.kernel.org/r/20191217161318.31402-4-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
89606bb3a9
commit
5eee614700
@ -39,8 +39,8 @@ struct wfx_link_entry {
|
||||
|
||||
struct tx_policy {
|
||||
struct list_head link;
|
||||
int usage_count;
|
||||
u8 rates[12];
|
||||
u8 usage_count;
|
||||
u8 uploaded;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user