提交 327dfd88 编写于 作者: G Giuseppe CAVALLARO 提交者: David S. Miller

stmmac: remove useless csum flag

This patch removes the no_csum_insertion private parameter that is not used anymore
and, also,  the "likely" annotation from the condition that is not in a critical path.
Signed-off-by: NGiuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e6b0260c
...@@ -70,7 +70,6 @@ struct stmmac_priv { ...@@ -70,7 +70,6 @@ struct stmmac_priv {
struct net_device *dev; struct net_device *dev;
struct device *device; struct device *device;
struct mac_device_info *hw; struct mac_device_info *hw;
int no_csum_insertion;
spinlock_t lock; spinlock_t lock;
struct phy_device *phydev ____cacheline_aligned_in_smp; struct phy_device *phydev ____cacheline_aligned_in_smp;
......
...@@ -1224,8 +1224,7 @@ static void free_dma_desc_resources(struct stmmac_priv *priv) ...@@ -1224,8 +1224,7 @@ static void free_dma_desc_resources(struct stmmac_priv *priv)
*/ */
static void stmmac_dma_operation_mode(struct stmmac_priv *priv) static void stmmac_dma_operation_mode(struct stmmac_priv *priv)
{ {
if (likely(priv->plat->force_sf_dma_mode || if (priv->plat->force_sf_dma_mode || priv->plat->tx_coe) {
((priv->plat->tx_coe) && (!priv->no_csum_insertion)))) {
/* /*
* In case of GMAC, SF mode can be enabled * In case of GMAC, SF mode can be enabled
* to perform the TX COE in HW. This depends on: * to perform the TX COE in HW. This depends on:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册