Skip to content

Commit 6b8847c

Browse files
Jiri Bencdavem330
authored andcommitted
ip_tunnels: use u8/u16/u32
The ip_tunnels.h include file uses mixture of __u16 and u16 (etc.) types. Unify it to the non-underscore variants. Signed-off-by: Jiri Benc <jbenc@redhat.com> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent ac1cf39 commit 6b8847c

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎include/net/ip_tunnels.h‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ struct ip_tunnel_key {
3232
__be32 ipv4_src;
3333
__be32 ipv4_dst;
3434
__be16 tun_flags;
35-
__u8 ipv4_tos;
36-
__u8 ipv4_ttl;
35+
u8 ipv4_tos;
36+
u8 ipv4_ttl;
3737
__be16 tp_src;
3838
__be16 tp_dst;
3939
};
@@ -64,8 +64,8 @@ struct ip_tunnel_6rd_parm {
6464
#endif
6565

6666
struct ip_tunnel_encap {
67-
__u16 type;
68-
__u16 flags;
67+
u16 type;
68+
u16 flags;
6969
__be16 sport;
7070
__be16 dport;
7171
};
@@ -95,8 +95,8 @@ struct ip_tunnel {
9595
* arrived */
9696

9797
/* These four fields used only by GRE */
98-
__u32 i_seqno; /* The last seen seqno */
99-
__u32 o_seqno; /* The last output seqno */
98+
u32 i_seqno; /* The last seen seqno */
99+
u32 o_seqno; /* The last output seqno */
100100
int tun_hlen; /* Precalculated header length */
101101
int mlink;
102102

@@ -273,8 +273,8 @@ static inline u8 ip_tunnel_ecn_encap(u8 tos, const struct iphdr *iph,
273273

274274
int iptunnel_pull_header(struct sk_buff *skb, int hdr_len, __be16 inner_proto);
275275
int iptunnel_xmit(struct sock *sk, struct rtable *rt, struct sk_buff *skb,
276-
__be32 src, __be32 dst, __u8 proto,
277-
__u8 tos, __u8 ttl, __be16 df, bool xnet);
276+
__be32 src, __be32 dst, u8 proto,
277+
u8 tos, u8 ttl, __be16 df, bool xnet);
278278

279279
struct sk_buff *iptunnel_handle_offloads(struct sk_buff *skb, bool gre_csum,
280280
int gso_type_mask);

0 commit comments

Comments
 (0)