From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: [PATCH net-next 0/7] neighbor: cleanups plus extack for add and delete Date: Wed, 5 Dec 2018 15:34:07 -0800 Message-ID: <20181205233414.1386-1-dsahern@kernel.org> Cc: davem@davemloft.net, David Ahern To: netdev@vger.kernel.org Return-path: Received: from mail.kernel.org ([198.145.29.99]:53876 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727592AbeLEXd0 (ORCPT ); Wed, 5 Dec 2018 18:33:26 -0500 Sender: netdev-owner@vger.kernel.org List-ID: From: David Ahern cleanups: - remove open coding of key and hash functions for ipv4 and ipv6 and then collapse hash functions - collapse now unnecessary ___neigh_lookup_noref helper - create helper for neigh hash computation - remove duplicate lookup in neigh_add After that add extack messages for neighbor add and delete. David Ahern (7): neighbor: Remove open coding of key and hash functions neighbor: Fold ___neigh_lookup_noref into __neigh_lookup_noref net/ipv4: Move arp_hashfn into arp_hash net/ipv6: Move ndisc_hashfn to ndisc_hash neighbor: Create a neigh_hash helper neighbor: Skip the duplicate lookup in neigh_add neighbor: Add extack messages for add and delete commands include/net/arp.h | 10 +------ include/net/ndisc.h | 12 +-------- include/net/neighbour.h | 30 +++++++++------------ net/core/filter.c | 3 +-- net/core/neighbour.c | 72 ++++++++++++++++++++++++++++++------------------- net/ipv4/arp.c | 5 +++- net/ipv6/ndisc.c | 7 ++++- 7 files changed, 71 insertions(+), 68 deletions(-) -- 2.11.0