From: Jiri Benc <jbenc@redhat.com>
To: netdev@vger.kernel.org
Cc: Thomas Graf <tgraf@suug.ch>
Subject: [PATCH v3 net-next 02/13] ip_tunnels: use u8/u16/u32
Date: Thu, 20 Aug 2015 13:56:21 +0200 [thread overview]
Message-ID: <dc25219e409fae2e363c25caa3b9a098bcc4ee81.1440071726.git.jbenc@redhat.com> (raw)
In-Reply-To: <cover.1440071726.git.jbenc@redhat.com>
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>
---
include/net/ip_tunnels.h | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/include/net/ip_tunnels.h b/include/net/ip_tunnels.h
index 81cf11c931e4..ca173f22f07f 100644
--- a/include/net/ip_tunnels.h
+++ b/include/net/ip_tunnels.h
@@ -32,8 +32,8 @@ struct ip_tunnel_key {
__be32 ipv4_src;
__be32 ipv4_dst;
__be16 tun_flags;
- __u8 ipv4_tos;
- __u8 ipv4_ttl;
+ u8 ipv4_tos;
+ u8 ipv4_ttl;
__be16 tp_src;
__be16 tp_dst;
};
@@ -64,8 +64,8 @@ struct ip_tunnel_6rd_parm {
#endif
struct ip_tunnel_encap {
- __u16 type;
- __u16 flags;
+ u16 type;
+ u16 flags;
__be16 sport;
__be16 dport;
};
@@ -95,8 +95,8 @@ struct ip_tunnel {
* arrived */
/* These four fields used only by GRE */
- __u32 i_seqno; /* The last seen seqno */
- __u32 o_seqno; /* The last output seqno */
+ u32 i_seqno; /* The last seen seqno */
+ u32 o_seqno; /* The last output seqno */
int tun_hlen; /* Precalculated header length */
int mlink;
@@ -273,8 +273,8 @@ static inline u8 ip_tunnel_ecn_encap(u8 tos, const struct iphdr *iph,
int iptunnel_pull_header(struct sk_buff *skb, int hdr_len, __be16 inner_proto);
int iptunnel_xmit(struct sock *sk, struct rtable *rt, struct sk_buff *skb,
- __be32 src, __be32 dst, __u8 proto,
- __u8 tos, __u8 ttl, __be16 df, bool xnet);
+ __be32 src, __be32 dst, u8 proto,
+ u8 tos, u8 ttl, __be16 df, bool xnet);
struct sk_buff *iptunnel_handle_offloads(struct sk_buff *skb, bool gre_csum,
int gso_type_mask);
--
1.8.3.1
next prev parent reply other threads:[~2015-08-20 11:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-20 11:56 [PATCH v3 net-next 00/13] lwtunnel: per route ipv6 support for vxlan Jiri Benc
2015-08-20 11:56 ` [PATCH v3 net-next 01/13] ip_tunnels: remove custom alignment and packing Jiri Benc
2015-08-20 11:56 ` Jiri Benc [this message]
2015-08-20 11:56 ` [PATCH v3 net-next 03/13] ip_tunnels: use offsetofend Jiri Benc
2015-08-20 11:56 ` [PATCH v3 net-next 04/13] ip_tunnels: add IPv6 addresses to ip_tunnel_key Jiri Benc
2015-08-20 11:56 ` [PATCH v3 net-next 05/13] ip_tunnels: use tos and ttl fields also for IPv6 Jiri Benc
2015-08-20 11:56 ` [PATCH v3 net-next 06/13] route: move lwtunnel state to dst_entry Jiri Benc
2015-08-20 11:56 ` [PATCH v3 net-next 07/13] ipv6: drop metadata dst in ip6_route_input Jiri Benc
2015-08-20 11:56 ` [PATCH v3 net-next 08/13] ipv6: ndisc: inherit metadata dst when creating ndisc requests Jiri Benc
2015-08-20 11:56 ` [PATCH v3 net-next 09/13] vxlan: provide access function for vxlan socket address family Jiri Benc
2015-08-20 11:56 ` [PATCH v3 net-next 10/13] vxlan: do not shadow flags variable Jiri Benc
2015-08-20 11:56 ` [PATCH v3 net-next 11/13] vxlan: metadata based tunneling for IPv6 Jiri Benc
2015-08-20 11:56 ` [PATCH v3 net-next 12/13] ipv6: route: extend flow representation with tunnel key Jiri Benc
2015-08-20 11:56 ` [PATCH v3 net-next 13/13] ipv6: route: per route IP tunnel metadata via lightweight tunnel Jiri Benc
2015-08-20 22:42 ` [PATCH v3 net-next 00/13] lwtunnel: per route ipv6 support for vxlan David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dc25219e409fae2e363c25caa3b9a098bcc4ee81.1440071726.git.jbenc@redhat.com \
--to=jbenc@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=tgraf@suug.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).