diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2020-04-27 00:36:56 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-27 21:48:47 +0300 |
commit | 10478283f210e64ac682083083437dd5f89b7c4a (patch) | |
tree | 5abeb25dcde655c95f0ead680dd9b7493830a22d /drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c | |
parent | 975e8505e6701c77b43bcdd5acc48d3735063b68 (diff) | |
download | linux-10478283f210e64ac682083083437dd5f89b7c4a.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c')
0 files changed, 0 insertions, 0 deletions