diff options
author | Maxim Mikityanskiy | 2019-07-05 16:59:28 +0200 |
---|---|---|
committer | Saeed Mahameed | 2019-08-08 22:01:18 +0200 |
commit | 405b93eb764367a670e729da18e54dc42db32620 (patch) | |
tree | 71dbdf65434f442f6bab180a550436d1e2b7e0ba /drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | |
parent | Merge tag 'batadv-net-for-davem-20190808' of git://git.open-mesh.org/linux-merge (diff) | |
download | kernel-qcow2-linux-405b93eb764367a670e729da18e54dc42db32620.tar.gz kernel-qcow2-linux-405b93eb764367a670e729da18e54dc42db32620.tar.xz kernel-qcow2-linux-405b93eb764367a670e729da18e54dc42db32620.zip |
net/mlx5e: Use flow keys dissector to parse packets for ARFS
The current ARFS code relies on certain fields to be set in the SKB
(e.g. transport_header) and extracts IP addresses and ports by custom
code that parses the packet. The necessary SKB fields, however, are not
always set at that point, which leads to an out-of-bounds access. Use
skb_flow_dissect_flow_keys() to get the necessary information reliably,
fix the out-of-bounds access and reuse the code.
Fixes: 18c908e477dc ("net/mlx5e: Add accelerated RFS support")
Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/eswitch.h')
0 files changed, 0 insertions, 0 deletions