Blame view
include/net/geneve.h
1.85 KB
b24413180 License cleanup: ... |
1 |
/* SPDX-License-Identifier: GPL-2.0 */ |
0b5e8b8ee net: Add Geneve t... |
2 3 4 5 |
#ifndef __NET_GENEVE_H #define __NET_GENEVE_H 1 #include <net/udp_tunnel.h> |
0b5e8b8ee net: Add Geneve t... |
6 |
|
974eff2b5 net: Move the def... |
7 |
#define GENEVE_UDP_PORT 6081 |
0b5e8b8ee net: Add Geneve t... |
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
/* Geneve Header: * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * |Ver| Opt Len |O|C| Rsvd. | Protocol Type | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * | Virtual Network Identifier (VNI) | Reserved | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * | Variable Length Options | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * * Option Header: * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * | Option Class | Type |R|R|R| Length | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * | Variable Option Data | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ */ struct geneve_opt { __be16 opt_class; u8 type; #ifdef __LITTLE_ENDIAN_BITFIELD u8 length:5; u8 r3:1; u8 r2:1; u8 r1:1; #else u8 r1:1; u8 r2:1; u8 r3:1; u8 length:5; #endif u8 opt_data[]; }; #define GENEVE_CRIT_OPT_TYPE (1 << 7) struct genevehdr { #ifdef __LITTLE_ENDIAN_BITFIELD u8 opt_len:6; u8 ver:2; u8 rsvd1:6; u8 critical:1; u8 oam:1; #else u8 ver:2; u8 opt_len:6; u8 oam:1; u8 critical:1; u8 rsvd1:6; #endif __be16 proto_type; u8 vni[3]; u8 rsvd2; struct geneve_opt options[]; }; |
1d10bd167 net: add netif_is... |
63 64 65 66 67 |
static inline bool netif_is_geneve(const struct net_device *dev) { return dev->rtnl_link_ops && !strcmp(dev->rtnl_link_ops->kind, "geneve"); } |
7c5df8fa1 openvswitch: fix ... |
68 |
#ifdef CONFIG_INET |
e305ac6cf geneve: Add suppo... |
69 70 |
struct net_device *geneve_dev_create_fb(struct net *net, const char *name, u8 name_assign_type, u16 dst_port); |
7c5df8fa1 openvswitch: fix ... |
71 72 73 |
#endif /*ifdef CONFIG_INET */ #endif /*ifdef__NET_GENEVE_H */ |