From patchwork Mon Jun 5 08:31:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hangbin Liu X-Patchwork-Id: 771126 X-Patchwork-Delegate: shemminger@vyatta.com Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3wh7NG61N7z9s3w for ; Mon, 5 Jun 2017 18:32:14 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="FEsq0zGN"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751489AbdFEIcM (ORCPT ); Mon, 5 Jun 2017 04:32:12 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34679 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751437AbdFEIcL (ORCPT ); Mon, 5 Jun 2017 04:32:11 -0400 Received: by mail-pf0-f196.google.com with SMTP id w69so19947227pfk.1 for ; Mon, 05 Jun 2017 01:32:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=B5khWcjeb2zALkBgLR6ExhTCb0yv49KZ2zy8ThGbDeQ=; b=FEsq0zGN9ZLPTKrnqDlsEgrCyK2FLn95MtB7tzo+f+MSFVjTMx5bhFHct5+A5Ehazy iuNb5VKJrjitJ5DEmwEp1VSNIKmwV96ZrIkQ+P0bsq1w5QIAJdcpeNzOMziE2JYJWeHm zZxskYIVxGERZdEWXUempE0LeBtC/yGetFSsSbrOF2g20N5P3dD2NWVExRKKnLom6bOE hb4XbOO82LDw7D6WyyqA6mbxFgUxwQOy44BY7Jjn2QSEGy92RJqhaHMT71xoITak8fGa bf4PZyFr643KQNgVhSNkLXnxDQl3c0U+MLwmkYWl+JLtlFui3pOeWTXhy12yE35OXC/A 4rgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=B5khWcjeb2zALkBgLR6ExhTCb0yv49KZ2zy8ThGbDeQ=; b=rUjuF/l7LK8L46HwjdJPpH36QbAo73CNyEcyVuedAE1/BV6Pa93Lvy/ySE4q6Ugs4d VgqTQM2B6aRiTdpyMh+MYjCX1w0Wj6AY/RuR/pfeyvB5MQbm9YMbn2dcAATiPk0Y9Hjt OYEcWeydCvKsu/0H3bWUxilSIEva839au95sdh7tCKqjnwMHw6woikiPMz07iH7LIBra 7yZDWdn2ukXAM/npZMjbWbUIpqjcqIPgYnM3AC5ze6BDCumb/I4thz5utHJ6lrEE24ku OeTqf1WS7aBQBp8XPdNlnTA/7LakPT2A48pc2Kki9kKHCP7AkpIGD/Z6plVG2Ej77AQJ 5k6Q== X-Gm-Message-State: AODbwcDg0lC2MB5dlPiYvtr+SzpYRyUsTmB7dmKBsLwbTjdaff5ktd3O yU0KCrH/ikbgy8FI X-Received: by 10.99.23.100 with SMTP id 36mr19845077pgx.118.1496651530463; Mon, 05 Jun 2017 01:32:10 -0700 (PDT) Received: from leo.usersys.redhat.com ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id p76sm55820935pfa.53.2017.06.05.01.32.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Jun 2017 01:32:09 -0700 (PDT) From: Hangbin Liu To: netdev@vger.kernel.org Cc: Stephen Hemminger , Hangbin Liu Subject: [PATCH iproute2 net-next] ip neigh: allow flush FAILED neighbour entry Date: Mon, 5 Jun 2017 16:31:29 +0800 Message-Id: <1496651489-28110-1-git-send-email-liuhangbin@gmail.com> X-Mailer: git-send-email 2.5.5 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org After upstream commit 5071034e4af7 ('neigh: Really delete an arp/neigh entry on "ip neigh delete" or "arp -d"'), we could delete a single FAILED neighbour entry now. But `ip neigh flush` still skip the FAILED entry. Let's remove this filter so we can also flush FAILED entry. Signed-off-by: Hangbin Liu --- ip/ipneigh.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ip/ipneigh.c b/ip/ipneigh.c index 4d8fc85..8082fa8 100644 --- a/ip/ipneigh.c +++ b/ip/ipneigh.c @@ -445,7 +445,6 @@ static int do_show_or_flush(int argc, char **argv, int flush) filter.flushb = flushb; filter.flushp = 0; filter.flushe = sizeof(flushb); - filter.state &= ~NUD_FAILED; while (round < MAX_ROUNDS) { if (rtnl_dump_request_n(&rth, &req.n) < 0) {