diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2021-03-22 12:38:19 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-22 13:11:59 -0700 |
commit | f5fcca89f59c84a917e6d470258a12eb3244875e (patch) | |
tree | a055c56bc7ec01eaf4f934f2848ca7479efc389b /net/bridge/br_vlan_tunnel.c | |
parent | c3c3791ce31eb7b4fa140df20985285516ef99f2 (diff) | |
download | linux-stable-f5fcca89f59c84a917e6d470258a12eb3244875e.tar.gz linux-stable-f5fcca89f59c84a917e6d470258a12eb3244875e.tar.bz2 linux-stable-f5fcca89f59c84a917e6d470258a12eb3244875e.zip |
net: bridge: declare br_vlan_tunnel_lookup argument tunnel_id as __be64
The only caller of br_vlan_tunnel_lookup, br_handle_ingress_vlan_tunnel,
extracts the tunnel_id from struct ip_tunnel_info::struct ip_tunnel_key::
tun_id which is a __be64 value.
The exact endianness does not seem to matter, because the tunnel id is
just used as a lookup key for the VLAN group's tunnel hash table, and
the value is not interpreted directly per se. Moreover,
rhashtable_lookup_fast treats the key argument as a const void *.
Therefore, there is no functional change associated with this patch,
just one to silence "make W=1" builds.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Acked-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_vlan_tunnel.c')
-rw-r--r-- | net/bridge/br_vlan_tunnel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_vlan_tunnel.c b/net/bridge/br_vlan_tunnel.c index 169e005fbda2..0d3a8c01552e 100644 --- a/net/bridge/br_vlan_tunnel.c +++ b/net/bridge/br_vlan_tunnel.c @@ -35,7 +35,7 @@ static const struct rhashtable_params br_vlan_tunnel_rht_params = { }; static struct net_bridge_vlan *br_vlan_tunnel_lookup(struct rhashtable *tbl, - u64 tunnel_id) + __be64 tunnel_id) { return rhashtable_lookup_fast(tbl, &tunnel_id, br_vlan_tunnel_rht_params); |