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:

committed by
David S. Miller

parent
c110c311b1
commit
05ca4029b2
@@ -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);
|
||||
|
Reference in New Issue
Block a user