Fix policing performance issues with VIFs.
authorJustin Pettit <jpettit@nicira.com>
Wed, 29 Apr 2009 22:43:57 +0000 (15:43 -0700)
committerJustin Pettit <jpettit@nicira.com>
Wed, 29 Apr 2009 22:43:57 +0000 (15:43 -0700)
commit7dda0ac981b62463f50ab3267a66d4d2222fc5dd
tree39bd3f89a95b388091bba42eb7f720f84e68903e
parent1de440e97de9428941e653c786923fdd9f2e7915
Fix policing performance issues with VIFs.

Policing is configured with the "tc" command.  By default, it picks up
the MTU from the interface having policy applied.  When a guest operating
systems is configured for segmentation offloading, the packets handed to
DOM0 may be substantially larger than the MTU.  The policing code was
dropping these packets, which caused performance to dive.  We now
configure policing with an MTU of 64K, which solves the problem.

Thanks to Ben for diagnosing the problem.
lib/netdev.c