diff options
author | Alaa Hleihel | 2018-09-05 10:43:23 +0200 |
---|---|---|
committer | Saeed Mahameed | 2018-10-01 19:58:00 +0200 |
commit | 4d8fcf216c90bc25e34ae2200aa8985ee3158898 (patch) | |
tree | 78b1569cdc943657507b28ddac738466b1281297 /drivers/net/ethernet/mellanox/mlx5/core/en.h | |
parent | netlink: fix typo in nla_parse_nested() comment (diff) | |
download | kernel-qcow2-linux-4d8fcf216c90bc25e34ae2200aa8985ee3158898.tar.gz kernel-qcow2-linux-4d8fcf216c90bc25e34ae2200aa8985ee3158898.tar.xz kernel-qcow2-linux-4d8fcf216c90bc25e34ae2200aa8985ee3158898.zip |
net/mlx5e: Avoid unbounded peer devices when unpairing TC hairpin rules
If the peer device was already unbound, then do not attempt to modify
it's resources, otherwise we will crash on dereferencing non-existing
device.
Fixes: 5c65c564c962 ("net/mlx5e: Support offloading TC NIC hairpin flows")
Signed-off-by: Alaa Hleihel <alaa@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en.h b/drivers/net/ethernet/mellanox/mlx5/core/en.h index db2cfcd21d43..0f189f873859 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en.h @@ -54,6 +54,7 @@ #include "en_stats.h" #include "en/fs.h" +extern const struct net_device_ops mlx5e_netdev_ops; struct page_pool; #define MLX5E_METADATA_ETHER_TYPE (0x8CE4) |