]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: act_tunnel_key: Don't dump dst port if it wasn't set
authorAdi Nissim <adin@mellanox.com>
Sun, 2 Dec 2018 12:55:21 +0000 (14:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Dec 2018 04:53:37 +0000 (20:53 -0800)
commit8cf99a1a58b8f604b06e277485299dd101f3987e
tree7aec40872e97462a29f78bd46dec8e7ee01e0eb4
parentc8b04bc17959770bcce84d89c7697dba4cb61633
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: Adi Nissim <adin@mellanox.com>
Reviewed-by: Oz Shlomo <ozsh@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_tunnel_key.c