netdev-linux: Don't restrict policing to IPv4 and don't call "tc".
authorJustin Pettit <jpettit@nicira.com>
Mon, 5 Dec 2011 00:33:54 +0000 (16:33 -0800)
committerJustin Pettit <jpettit@nicira.com>
Mon, 5 Dec 2011 22:08:06 +0000 (14:08 -0800)
commitf8500004409c30ff929b8cff367a39dab76f85c6
tree2fcfb2865ee732e7cf1429f5b943f5d96fd3eb43
parenta9d0ede56574dca2260341df565e5326f7b6352e
netdev-linux: Don't restrict policing to IPv4 and don't call "tc".

Mike Bursell pointed out that our policer only works on IPv4
traffic--and specifically not IPv6.  By using the "basic" filter, we can
enforce policing on all traffic for a particular interface.

Jamal Hadi Salim pointed out that calling "tc" directly with system() is
pretty ugly.  This commit switches our remaining "tc" calls to directly
sending the appropriate netlink messages.

Suggested-by: Mike Bursell <mike.bursell@citrix.com>
Suggested-by: Jamal Hadi Salim <hadi@cyberus.ca>
AUTHORS
INSTALL.Linux
lib/netdev-linux.c