diff options
author | Maor Gottlieb <maorg@mellanox.com> | 2016-08-30 16:58:32 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-10-07 16:54:17 -0400 |
commit | 15dfbd6b4f058571f41be5b7917465dab2ff55da (patch) | |
tree | dbe6fa3fa476627230384d75f9f0c3685121b040 /include/rdma/rdma_netlink.h | |
parent | c47ac6aee6df4dc17460f56dd66af0a271e8392c (diff) | |
download | lwn-15dfbd6b4f058571f41be5b7917465dab2ff55da.tar.gz lwn-15dfbd6b4f058571f41be5b7917465dab2ff55da.zip |
IB/uverbs: Add support to extend flow steering specifications
Flow steering specifications structures were implemented as in an
extensible way that allows one to add new filters and new fields
to existing filters.
These specifications have never been extended, therefore the
kernel flow specifications size and the user flow specifications size
were must to be equal.
In downstream patch, the IPv4 flow specifications type is extended to
support TOS and TTL fields.
To support an extension we change the flow specifications size
condition test to be as following:
* If the user flow specifications is bigger than the kernel
specifications, we verify that all the bits which not in the kernel
specifications are zeros and the flow is added only with the kernel
specifications fields.
* Otherwise, we add flow rule only with the user specifications fields.
User space filters must be aligned with 32bits.
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma/rdma_netlink.h')
0 files changed, 0 insertions, 0 deletions