]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Enable decap and packet reformat on flow tables
authorMark Bloch <markb@mellanox.com>
Sun, 2 Sep 2018 09:51:33 +0000 (12:51 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 11 Sep 2018 15:28:06 +0000 (09:28 -0600)
commitd3e4b62ad6d29376d5d90e56f2eecf29e2e9bf72
tree5597de6e1859714655c6e9956aab2e26f8d2bb64
parent50566b20e108ee849cc72459bd48c4c59408e24d
RDMA/mlx5: Enable decap and packet reformat on flow tables

If NIC RX flow tables support decap operation, enable it on creation,
This allows to perform decapsulation of tunnelled packets by steering
rules. If NIC TX flow tables support reformat operation, enable it on
creation.

We don't enable those capabilities on representors as the E-Switch should
handle packet modification (can be configured via TC) and as current
hardware can't handle both FDB and NIC flow tables with decap/packet
reformat support.

Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c