ofproto-dpif: Install drops for flows from invalid in_ports.
authorEthan Jackson <ethan@nicira.com>
Wed, 23 Jan 2013 23:38:10 +0000 (15:38 -0800)
committerEthan Jackson <ethan@nicira.com>
Tue, 29 Jan 2013 03:09:58 +0000 (19:09 -0800)
commit8f73d5377d24ebc89540065a94a2e3117f114a4c
tree07468a9cd480fafece25b400b8ceefbc246aed54
parent72d64e3322bba929e733886fef50711558016701
ofproto-dpif: Install drops for flows from invalid in_ports.

Before this patch, if a packet came in on a port which userspace
doesn't know about, it would be silently dropped without installing
a drop flow.  Historically, this has been fine because this
situation could only occur during transient reconfiguration
periods.  However, in future, this could occur when the tunneling
code decides to reject a packet due to invalid headers.  In this
case, it's preferable to drop the packet in the kernel to avoid a
high bandwidth stream of invalid packets DoSing the switch.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto-dpif.c