From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Schiller Subject: Re: [PATCH net-next v4 2/5] net/lapb: support netdev events Date: Tue, 24 Nov 2020 06:29:44 +0100 Message-ID: <39b6386b4ce7462f6cb4448020735ed5@dev.tdt.de> References: <20201120054036.15199-1-ms@dev.tdt.de> <20201120054036.15199-3-ms@dev.tdt.de> <87a620b6a55ea8386bffefca0a1f8b77@dev.tdt.de> <16b7e74e6e221f43420da7836659d7df@dev.tdt.de> <20201123113622.115c474b@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Xie He Cc: Jakub Kicinski , Andrew Hendry , "David S. Miller" , Linux X25 , Linux Kernel Network Developers , LKML On 2020-11-23 23:09, Xie He wrote: > On Mon, Nov 23, 2020 at 11:36 AM Jakub Kicinski > wrote: >> >> > > From this point of view it will be the best to handle the NETDEV_UP in >> > > the lapb event handler and establish the link analog to the >> > > NETDEV_CHANGE event if the carrier is UP. >> > >> > Thanks! This way we can make sure LAPB would automatically connect in >> > all situations. >> > >> > Since we'll have a netif_carrier_ok check in NETDEV_UP handing, it >> > might make the code look prettier to also have a netif_carrier_ok >> > check in NETDEV_GOING_DOWN handing (for symmetry). Just a suggestion. >> > You can do whatever looks good to you :) >> >> Xie other than this the patches look good to you? >> >> Martin should I expect a respin to follow Xie's suggestion >> or should I apply v4? > > There should be a respin because we need to handle the NETDEV_UP > event. The lapbether driver (and possibly some HDLC WAN drivers) > doesn't generate carrier events so we need to do auto-connect in the > NETDEV_UP event. I'll send a v5 with the appropriate change.