From 4d10512c91773b817c91a5ee4768f7c9665ec0cb Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Wed, 19 May 2010 14:12:27 -0700 Subject: [PATCH] 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. --- lib/netdev-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index b8d24ed99..9a6d70a29 100644 --- a/lib/netdev-linux.c +++ b/lib/netdev-linux.c @@ -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; -- 2.43.0