| .. | .. | 
|---|
| 4 | 4 |  | 
|---|
| 5 | 5 | #include <net/udp_tunnel.h> | 
|---|
| 6 | 6 |  | 
|---|
|  | 7 | +#define GENEVE_UDP_PORT		6081 | 
|---|
|  | 8 | + | 
|---|
| 7 | 9 | /* Geneve Header: | 
|---|
| 8 | 10 | *  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 
|---|
| 9 | 11 | *  |Ver|  Opt Len  |O|C|    Rsvd.  |          Protocol Type        | | 
|---|
| .. | .. | 
|---|
| 60 | 62 | struct geneve_opt options[]; | 
|---|
| 61 | 63 | }; | 
|---|
| 62 | 64 |  | 
|---|
|  | 65 | +static inline bool netif_is_geneve(const struct net_device *dev) | 
|---|
|  | 66 | +{ | 
|---|
|  | 67 | +	return dev->rtnl_link_ops && | 
|---|
|  | 68 | +	       !strcmp(dev->rtnl_link_ops->kind, "geneve"); | 
|---|
|  | 69 | +} | 
|---|
|  | 70 | + | 
|---|
| 63 | 71 | #ifdef CONFIG_INET | 
|---|
| 64 | 72 | struct net_device *geneve_dev_create_fb(struct net *net, const char *name, | 
|---|
| 65 | 73 | u8 name_assign_type, u16 dst_port); | 
|---|