提交 5b40f709 编写于 作者: F Fabio Estevam 提交者: David S. Miller

net: fec: Remove unneeded FEATURES_NEED_QUIESCE definition

There is no need to have FEATURES_NEED_QUIESCE defined as we
can simply use NETIF_F_RXCSUM instead as done in other parts
of the driver.
Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 17fb0b2b
...@@ -3070,7 +3070,6 @@ static void fec_poll_controller(struct net_device *dev) ...@@ -3070,7 +3070,6 @@ static void fec_poll_controller(struct net_device *dev)
} }
#endif #endif
#define FEATURES_NEED_QUIESCE NETIF_F_RXCSUM
static inline void fec_enet_set_netdev_features(struct net_device *netdev, static inline void fec_enet_set_netdev_features(struct net_device *netdev,
netdev_features_t features) netdev_features_t features)
{ {
...@@ -3094,7 +3093,7 @@ static int fec_set_features(struct net_device *netdev, ...@@ -3094,7 +3093,7 @@ static int fec_set_features(struct net_device *netdev,
struct fec_enet_private *fep = netdev_priv(netdev); struct fec_enet_private *fep = netdev_priv(netdev);
netdev_features_t changed = features ^ netdev->features; netdev_features_t changed = features ^ netdev->features;
if (netif_running(netdev) && changed & FEATURES_NEED_QUIESCE) { if (netif_running(netdev) && changed & NETIF_F_RXCSUM) {
napi_disable(&fep->napi); napi_disable(&fep->napi);
netif_tx_lock_bh(netdev); netif_tx_lock_bh(netdev);
fec_stop(netdev); fec_stop(netdev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册