OpenCloudOS-Kernel/drivers/net/ethernet/realtek
Heiner Kallweit 10478283f2 r8169: improve configuring RxConfig register
Two bits in RxConfig are controlled by the following dev->feature's:
- NETIF_F_RXALL
- NETIF_F_HW_VLAN_CTAG_RX (since RTL8125)

We have to take care that RxConfig gets fully configured in
rtl_hw_start() after e.g. resume from hibernation. Therefore:

- Factor out setting the feature-controlled RxConfig bits to a new
  function rtl_set_rx_config_features() that is called from
  rtl8169_set_features() and rtl_hw_start().
- Don't deal with RX_VLAN_8125 in rtl_init_rxcfg(), it will be set
  by rtl_set_rx_config_features().
- Don't handle NETIF_F_RXALL in rtl_set_rx_mode().

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-04-27 11:48:47 -07:00
..
8139cp.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
8139too.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
Kconfig r8169: add support for RTL8125 2019-08-29 17:47:27 -07:00
Makefile r8169: factor out PHY configuration to r8169_phy_config.c 2020-01-10 16:41:35 -08:00
atp.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
atp.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
r8169.h r8169: add r8169.h 2020-01-10 16:41:35 -08:00
r8169_firmware.c treewide: Use sizeof_field() macro 2019-12-09 10:36:44 -08:00
r8169_firmware.h r8169: factor out firmware handling 2019-06-05 11:41:59 -07:00
r8169_main.c r8169: improve configuring RxConfig register 2020-04-27 11:48:47 -07:00
r8169_phy_config.c r8169: add new helper rtl8168g_enable_gphy_10m 2020-03-23 21:27:10 -07:00