OSDN Git Service

net: phylink: remove duplicated linkmode pause resolution
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 23 May 2023 10:15:53 +0000 (11:15 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 24 May 2023 16:13:22 +0000 (09:13 -0700)
commitdc7a51411ec5381a567d02bee683c99713c411d9
tree7bdcd647d7c961fe55ebc511e92d5b946e44d1fb
parente9261467ae86a6544bb602a55a1eab52696e71e3
net: phylink: remove duplicated linkmode pause resolution

Phylink had two chunks of code virtually the same for resolving the
negotiated pause modes. Factor this down to one function.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phylink.c