summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_private_tunnel.h
diff options
context:
space:
mode:
authorKangmin Park <l4stpr0gr4m@gmail.com>2021-08-23 12:21:18 +0200
committerJakub Kicinski <kuba@kernel.org>2021-08-25 01:51:09 +0200
commita37c5c26693eadb3aa4101d8fe955e40d206b386 (patch)
tree7203922960e2f8bbdde0fb5f69e3f17eed191b65 /net/bridge/br_private_tunnel.h
parentselftests/net: Use kselftest skip code for skipped tests (diff)
downloadlinux-a37c5c26693eadb3aa4101d8fe955e40d206b386.tar.xz
linux-a37c5c26693eadb3aa4101d8fe955e40d206b386.zip
net: bridge: change return type of br_handle_ingress_vlan_tunnel
br_handle_ingress_vlan_tunnel() is only referenced in br_handle_frame(). If br_handle_ingress_vlan_tunnel() is called and return non-zero value, goto drop in br_handle_frame(). But, br_handle_ingress_vlan_tunnel() always return 0. So, the routines that check the return value and goto drop has no meaning. Therefore, change return type of br_handle_ingress_vlan_tunnel() to void and remove if statement of br_handle_frame(). Signed-off-by: Kangmin Park <l4stpr0gr4m@gmail.com> Acked-by: Nikolay Aleksandrov <nikolay@nvidia.com> Link: https://lore.kernel.org/r/20210823102118.17966-1-l4stpr0gr4m@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/bridge/br_private_tunnel.h')
-rw-r--r--net/bridge/br_private_tunnel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bridge/br_private_tunnel.h b/net/bridge/br_private_tunnel.h
index c54cc26211d7..2b053289f016 100644
--- a/net/bridge/br_private_tunnel.h
+++ b/net/bridge/br_private_tunnel.h
@@ -38,9 +38,9 @@ int nbp_vlan_tunnel_info_add(const struct net_bridge_port *port, u16 vid,
void nbp_vlan_tunnel_info_flush(struct net_bridge_port *port);
void vlan_tunnel_info_del(struct net_bridge_vlan_group *vg,
struct net_bridge_vlan *vlan);
-int br_handle_ingress_vlan_tunnel(struct sk_buff *skb,
- struct net_bridge_port *p,
- struct net_bridge_vlan_group *vg);
+void br_handle_ingress_vlan_tunnel(struct sk_buff *skb,
+ struct net_bridge_port *p,
+ struct net_bridge_vlan_group *vg);
int br_handle_egress_vlan_tunnel(struct sk_buff *skb,
struct net_bridge_vlan *vlan);
bool vlan_tunid_inrange(const struct net_bridge_vlan *v_curr,