dpif-linux: Drop oversized packets instead of assert-failing.
authorBen Pfaff <blp@nicira.com>
Sun, 11 Jan 2015 21:45:36 +0000 (13:45 -0800)
committerBen Pfaff <blp@nicira.com>
Sun, 11 Jan 2015 21:58:25 +0000 (13:58 -0800)
commit3282e5118707efc3ba07f7bd17f5f82fe931a732
tree0f428f4a0458fa51b3171c91e36485f5c0ebff4a
parentf3c7ec6a2a19bffdfa5218f984bda53582ecb8dc
dpif-linux: Drop oversized packets instead of assert-failing.

A packet sent to a Netlink datapath has to fit within a Netlink attribute.
Until now, this was only checked in an assertion inside the Netlink code,
which meant that trying to send a too-large packet (approximate 64 kB or
larger) would assert-fail.  It's better to just drop those packets, which
this commit does.

Reported-by: Shuping Cui <scui@redhat.com>
Reported-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
lib/dpif-linux.c