aboutsummaryrefslogtreecommitdiff
path: root/include/net/geneve.h
diff options
context:
space:
mode:
authorSinghai, Anjali2015-12-14 12:21:20 -0800
committerDavid S. Miller2015-12-16 10:58:56 -0500
commit05ca4029b25c65c860be5baa9288ec8f7e0a97e6 (patch)
treeff21869a2c818b772ce7e2f9e5339168ebaad00f /include/net/geneve.h
parentc110c311b195c54ce75bc2e85bbebd88d566d86c (diff)
geneve: Add geneve_get_rx_port support
This patch adds an op that the drivers can call into to get existing geneve ports. Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/geneve.h')
-rw-r--r--include/net/geneve.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/geneve.h b/include/net/geneve.h
index 3106ed6eae0d..e6c23dc765f7 100644
--- a/include/net/geneve.h
+++ b/include/net/geneve.h
@@ -62,6 +62,14 @@ struct genevehdr {
struct geneve_opt options[];
};
+#if IS_ENABLED(CONFIG_GENEVE)
+void geneve_get_rx_port(struct net_device *netdev);
+#else
+static inline void geneve_get_rx_port(struct net_device *netdev)
+{
+}
+#endif
+
#ifdef CONFIG_INET
struct net_device *geneve_dev_create_fb(struct net *net, const char *name,
u8 name_assign_type, u16 dst_port);