Messages in this thread | | | Subject | Re: [PATCH] dpaa2-ethsw: move the DPAA2 Ethernet Switch driver out of staging | From | Joe Perches <> | Date | Sat, 10 Aug 2019 18:03:09 -0700 |
| |
On Sat, 2019-08-10 at 21:45 +0000, Ioana Ciornei wrote: > On 8/9/19 10:05 PM, Andrew Lunn wrote: [] > >> +static int > >> +ethsw_get_link_ksettings(struct net_device *netdev, > >> + struct ethtool_link_ksettings *link_ksettings) > >> +{ > >> + struct ethsw_port_priv *port_priv = netdev_priv(netdev); > >> + struct dpsw_link_state state = {0}; > >> + int err = 0; > >> + > >> + err = dpsw_if_get_link_state(port_priv->ethsw_data->mc_io, 0, > >> + port_priv->ethsw_data->dpsw_handle, > >> + port_priv->idx, > >> + &state); > >> + if (err) { > >> + netdev_err(netdev, "ERROR %d getting link state", err);
trivia: Do please add terminating '\n's to all the formats.
| |