Skip to content

Commit 84a4160

Browse files
kuba-moodavem330
authored andcommitted
udp_tunnel: re-number the offload tunnel types
Make it possible to use tunnel types as flags more easily. There doesn't appear to be any user using the type as an array index, so this should make no difference. Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a2b992c commit 84a4160

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/net/udp_tunnel.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ void setup_udp_tunnel_sock(struct net *net, struct socket *sock,
106106
* call this function to perform Tx offloads on outgoing traffic.
107107
*/
108108
enum udp_parsable_tunnel_type {
109-
UDP_TUNNEL_TYPE_VXLAN, /* RFC 7348 */
110-
UDP_TUNNEL_TYPE_GENEVE, /* draft-ietf-nvo3-geneve */
111-
UDP_TUNNEL_TYPE_VXLAN_GPE, /* draft-ietf-nvo3-vxlan-gpe */
109+
UDP_TUNNEL_TYPE_VXLAN = BIT(0), /* RFC 7348 */
110+
UDP_TUNNEL_TYPE_GENEVE = BIT(1), /* draft-ietf-nvo3-geneve */
111+
UDP_TUNNEL_TYPE_VXLAN_GPE = BIT(2), /* draft-ietf-nvo3-vxlan-gpe */
112112
};
113113

114114
struct udp_tunnel_info {

0 commit comments

Comments
 (0)