net/mlx5e: Support IPsec mixed protocols in state and policy

IPsec policy and state can have different protocols, while working in
tunnel mode. Such situation is common on mobile networks, where internal
endpoints are using IPv4 and external backbone is connected through IPv6.

In IPsec packet offload, the HW is responsible to reformat the packet
and set right protocol. In current code, such operation is performed in
SA stage. That causes the situation where in RX path, the protocol is
not correct, as it needs to be taken from policy and not from SA.

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
1 file changed