aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/net/geneve.h
diff options
context:
space:
mode:
authorMoshe Shemesh <moshe@mellanox.com>2019-03-21 15:51:36 -0700
committerSaeed Mahameed <saeedm@mellanox.com>2019-03-22 12:09:31 -0700
commit974eff2b5793eeaa2eb433bca7eba9640d890c4a (patch)
tree8105d3d287e37cd575713b7ca390e4c7755c107b /include/net/geneve.h
parentnet/mlx5e: Remove redundant assignment (diff)
downloadwireguard-linux-974eff2b5793eeaa2eb433bca7eba9640d890c4a.tar.xz
wireguard-linux-974eff2b5793eeaa2eb433bca7eba9640d890c4a.zip
net: Move the definition of the default Geneve udp port to public header file
Move the definition of the default Geneve udp port from the geneve source to the header file, so we can re-use it from drivers. Modify existing drivers to use it. Signed-off-by: Moshe Shemesh <moshe@mellanox.com> Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com> Cc: John Hurley <john.hurley@netronome.com> Cc: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Tariq Toukan <tariqt@mellanox.com> Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/net/geneve.h')
-rw-r--r--include/net/geneve.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/geneve.h b/include/net/geneve.h
index fc6a7e0a874a..bced0b1d9fe4 100644
--- a/include/net/geneve.h
+++ b/include/net/geneve.h
@@ -4,6 +4,8 @@
#include <net/udp_tunnel.h>
+#define GENEVE_UDP_PORT 6081
+
/* Geneve Header:
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
* |Ver| Opt Len |O|C| Rsvd. | Protocol Type |