Wang Xiao W 63cfcf90fe fm10k/base: ignore oversized mailbox messages
When we call update_max_size, it does not drop all oversized messages.
This is due to the difficulty in performing this operation, since it is
a FIFO which makes updating anything other than head or tail very
difficult. To fix this, modify validate_msg_size to ensure that we error
out later when trying to transmit the message that could be oversized.
This will generally be a rare condition, as it requires the FIFO to
include a message larger than the max_size negotiated during mailbox
connect. Note that max_size is always smaller than rx.size, so it should
be safe to use here.

Also, update the update_max_size function header comment to clearly
indicate that it does not drop all oversized messages, but only those at
the head of the FIFO.

Signed-off-by: Wang Xiao W <xiao.w.wang@intel.com>
2015-10-07 13:25:07 +02:00
2015-08-03 19:22:42 +02:00
2015-09-30 01:19:19 +02:00
2015-10-02 01:35:23 +02:00
2015-09-03 19:22:48 +02:00
2015-08-17 19:35:37 +02:00
2015-07-09 00:56:40 +02:00
2015-08-03 19:22:42 +02:00
2013-03-07 10:57:42 +01:00
2015-05-22 15:51:38 +02:00
2013-07-25 14:43:06 +02:00
2015-09-03 19:22:48 +02:00
2014-06-11 00:29:34 +02:00
Description
No description provided
Languages
C 99.1%
Meson 0.5%
Python 0.2%
Shell 0.1%