2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

netdev-linux: Quiet down ingress policing.

If we attempt to remove ingress policing and receive "invalid
argument" it means that policing isn't compiled into the kernel.
If it isn't compiled in then accept that policing has been
successfully removed.
This commit is contained in:
Jesse Gross
2010-05-19 14:12:27 -07:00
parent 137fea8de4
commit 4d10512c91

View File

@@ -1163,7 +1163,7 @@ netdev_linux_remove_policing(struct netdev *netdev)
error = nl_sock_transact(rtnl_sock, &request, &reply);
ofpbuf_uninit(&request);
ofpbuf_delete(reply);
if (error && error != ENOENT) {
if (error && error != ENOENT && error != EINVAL) {
VLOG_WARN_RL(&rl, "%s: removing policing failed: %s",
netdev_name, strerror(error));
return error;