]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
netdevsim: add warnings on unexpected UDP tunnel port errors
authorJakub Kicinski <kuba@kernel.org>
Sat, 26 Sep 2020 00:56:41 +0000 (17:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Sep 2020 19:50:12 +0000 (12:50 -0700)
commit860e9d328fa585aafda2ef09aa1b13986279cbe7
tree6a434e9e8f1994ee2ad47ee058d9307e20330b99
parent74cc6d182d038cbba6c6d91beb1b2bab926b618b
netdevsim: add warnings on unexpected UDP tunnel port errors

We should never see a removal of a port which is not in the table
or adding a port to an occupied entry in the table. To make sure
such errors don't escape the checks in the test script add a
warning/kernel spat.

Error injection will not trigger those, nor should it ever put
us in a bad state.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/udp_tunnels.c