Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13C66C433FE for ; Sat, 18 Dec 2021 16:53:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233631AbhLRQxD (ORCPT ); Sat, 18 Dec 2021 11:53:03 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:33488 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbhLRQxC (ORCPT ); Sat, 18 Dec 2021 11:53:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=MDwtg2LbDvKrineMm3PC1bHfpDSu9KouOSoRduAGoUY=; b=VHUiMLQfdaXshddWKnjF7utPbA 1h1BVA7n3b4zYqfA8GlvuwLGbyraXl5Qf1hi6OmVTPCqmNOA/DPL8smsSAvqkHV5zO314k9uotEpf sH0iy3wbEKcbqccSY3I/xkXbGNGthS83CqXHoAc8eJoTi7euPZICOgmDC6YmdD6a9aao=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mycx5-00Gukz-1H; Sat, 18 Dec 2021 17:52:55 +0100 Date: Sat, 18 Dec 2021 17:52:55 +0100 From: Andrew Lunn To: Yevhen Orlov Cc: netdev@vger.kernel.org, Volodymyr Mytnyk , Taras Chornyi , Mickey Rachamim , Serhiy Pshyk , Taras Chornyi , Oleksandr Mazur , "David S. Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 0/6] prestera: add basic router driver support Message-ID: References: <20211217195440.29838-1-yevhen.orlov@plvision.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211217195440.29838-1-yevhen.orlov@plvision.eu> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 17, 2021 at 09:54:32PM +0200, Yevhen Orlov wrote: > Add initial router support for Marvell Prestera driver. > Subscribe on inetaddr notifications. TRAP packets, that has to be routed > (if packet has router's destination MAC address). I must be missing something here. Why do you need to tell it the IP address in order to perform software routing? All the switch needs to know is the MAC address. Any packets for that MAC address should be trapped to the host. The host can then decide what to do with it, router, bridge, or consume it itself. > Add features: > - Support ip address adding on port. > e.g.: "ip address add PORT 1.1.1.1/24" This should just work already. If it does not, you have something wrong in your current support. Andrew