]> git.baikalelectronics.ru Git - kernel.git/commit
net: lapbether: Close the LAPB device before its underlying Ethernet device closes
authorXie He <xie.he.0141@gmail.com>
Thu, 18 Mar 2021 19:07:47 +0000 (12:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Mar 2021 02:13:42 +0000 (19:13 -0700)
commite42f2f6e9ae785c61fc30fb593de26aa67fb717f
tree770a70611b45ad55b96a2628bd700eeffd9949df
parent9c0f9d60f3fd5b110ee81a732143044b84d31d80
net: lapbether: Close the LAPB device before its underlying Ethernet device closes

When a virtual LAPB device's underlying Ethernet device closes, the LAPB
device is also closed.

However, currently the LAPB device is closed after the Ethernet device
closes. It would be better to close it before the Ethernet device closes.
This would allow the LAPB device to transmit a last frame to notify the
other side that it is disconnecting.

Signed-off-by: Xie He <xie.he.0141@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/lapbether.c