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>
This commit is contained in:
Singhai, Anjali
2015-12-14 12:21:20 -08:00
committed by David S. Miller
parent c110c311b1
commit 05ca4029b2
2 changed files with 32 additions and 0 deletions

View File

@@ -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);