]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: fix TSO and TBS feature enabling during driver open
authorOng Boon Leong <boon.leong.ong@intel.com>
Wed, 21 Apr 2021 09:11:49 +0000 (17:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Apr 2021 17:51:26 +0000 (10:51 -0700)
commit209a71150467a55a47c926dda1eb1fac61942238
tree32a32ad329886ac01b3cc39b0036ffb02510e0c6
parent3b39dc58f4e93f37dd5da0db9af5a0981e2a96b9
net: stmmac: fix TSO and TBS feature enabling during driver open

TSO and TBS cannot co-exist and current implementation requires two
fixes:

 1) stmmac_open() does not need to call stmmac_enable_tbs() because
    the MAC is reset in stmmac_init_dma_engine() anyway.
 2) Inside stmmac_hw_setup(), we should call stmmac_enable_tso() for
    TX Q that is _not_ configured for TBS.

Fixes: c10c64da6696 ("net: stmmac: Initial support for TBS")
Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c