Skip to content
Commit 1c25324c authored by Adi Nissim's avatar Adi Nissim Committed by David S. Miller
Browse files

net/sched: act_tunnel_key: Don't dump dst port if it wasn't set



It's possible to set a tunnel without a destination port. However,
on dump(), a zero dst port is returned to user space even if it was not
set, fix that.

Note that so far it wasn't required, b/c key less tunnels were not
supported and the UDP tunnels do require destination port.

Signed-off-by: default avatarAdi Nissim <adin@mellanox.com>
Reviewed-by: default avatarOz Shlomo <ozsh@mellanox.com>
Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 80ef0f22
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment