mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
IB/core: Better checking of userspace values for receive flow steering
- Don't allow unsupported comp_mask values, user should check
ibv_query_device to know which features are supported.
- Add a check in ib_uverbs_create_flow() to verify the size passed
from the user space.
Signed-off-by: Matan Barak <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
This commit is contained in:
parent
f77c0162a3
commit
22878dbc91
2 changed files with 17 additions and 1 deletions
|
|
@ -1098,6 +1098,8 @@ enum ib_flow_spec_type {
|
|||
IB_FLOW_SPEC_UDP = 0x41
|
||||
};
|
||||
|
||||
#define IB_FLOW_SPEC_SUPPORT_LAYERS 4
|
||||
|
||||
/* Flow steering rule priority is set according to it's domain.
|
||||
* Lower domain value means higher priority.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue