Skip to content

Commit 9fbef05

Browse files
stephen hemmingerdavem330
authored andcommitted
gre: fix sparse warning
Use be16 consistently when looking at flags. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 66dc81e commit 9fbef05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/ipv4/ip_gre.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ static struct rtnl_link_stats64 *ipgre_get_stats64(struct net_device *dev,
222222

223223
/* Does key in tunnel parameters match packet */
224224
static bool ipgre_key_match(const struct ip_tunnel_parm *p,
225-
__u32 flags, __be32 key)
225+
__be16 flags, __be32 key)
226226
{
227227
if (p->i_flags & GRE_KEY) {
228228
if (flags & GRE_KEY)
@@ -237,7 +237,7 @@ static bool ipgre_key_match(const struct ip_tunnel_parm *p,
237237

238238
static struct ip_tunnel *ipgre_tunnel_lookup(struct net_device *dev,
239239
__be32 remote, __be32 local,
240-
__u32 flags, __be32 key,
240+
__be16 flags, __be32 key,
241241
__be16 gre_proto)
242242
{
243243
struct net *net = dev_net(dev);

0 commit comments

Comments
 (0)