]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net/mlx5e: en_accel, Add missing net/geneve.h include
authorRaed Salem <raeds@mellanox.com>
Mon, 20 Jan 2020 13:03:00 +0000 (15:03 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 20 Apr 2020 21:20:19 +0000 (14:20 -0700)
The cited commit relies on include <net/geneve.h> being included
implicitly prior to include "en_accel/en_accel.h".
This mandates that all files that needs to include en_accel.h
to redantantly include net/geneve.h.

Include net/geneve.h explicitly at "en_accel/en_accel.h" to avoid
undesired constrain as above.

Fixes: 0c526724a824 ("net/mlx5e: TX, Add geneve tunnel stateless offload support")
Signed-off-by: Raed Salem <raeds@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h

index 3022463f22845abd00876b7a4c865fb387a283c0..a6f65d4b2f365d9f92ea2e5f4fb7fa0c5e3ac1a1 100644 (file)
@@ -42,6 +42,8 @@
 #include "en/txrx.h"
 
 #if IS_ENABLED(CONFIG_GENEVE)
+#include <net/geneve.h>
+
 static inline bool mlx5_geneve_tx_allowed(struct mlx5_core_dev *mdev)
 {
        return mlx5_tx_swp_supported(mdev);