diff options
author | Cristian Bercaru <cristian.bercaru@freescale.com> | 2014-07-23 11:10:12 (GMT) |
---|---|---|
committer | Madalin Bucur <madalin.bucur@freescale.com> | 2014-10-08 13:19:59 (GMT) |
commit | 8f0464965a63eb46dd4e1f827b8b996226e70602 (patch) | |
tree | d2c61f2ad87f5097b54d4c88210949bd277baeb2 /drivers | |
parent | 0d761a20e9450df351c75ccad5c1273349dda225 (diff) | |
download | linux-fsl-qoriq-8f0464965a63eb46dd4e1f827b8b996226e70602.tar.xz |
dpaa_eth: change type of PAUSE frame settings to boolean
This patch changes the type of PAUSE frames settings to boolean
because they only accept the values true/false.
Signed-off-by: Cristian Bercaru <cristian.bercaru@freescale.com>
Change-Id: I6a3926054d4821f12937e96198c8435df38bf95c
Reviewed-on: http://git.am.freescale.net:8181/15552
Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
Tested-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_ethtool.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/mac-api.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/mac.h | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_ethtool.c b/drivers/net/ethernet/freescale/dpa/dpaa_ethtool.c index d36930e..8a755ef 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_ethtool.c +++ b/drivers/net/ethernet/freescale/dpa/dpaa_ethtool.c @@ -225,7 +225,7 @@ static int __cold dpa_set_pauseparam(struct net_device *net_dev, * adjust_link is triggered by a forced renegotiation of sym/asym PAUSE * settings. */ - mac_dev->autoneg_pause = epause->autoneg; + mac_dev->autoneg_pause = !!epause->autoneg; /* Determine the sym/asym advertised PAUSE capabilities from the desired * rx/tx pause settings. diff --git a/drivers/net/ethernet/freescale/dpa/mac-api.c b/drivers/net/ethernet/freescale/dpa/mac-api.c index a8b4704..3f79a1b 100644 --- a/drivers/net/ethernet/freescale/dpa/mac-api.c +++ b/drivers/net/ethernet/freescale/dpa/mac-api.c @@ -381,8 +381,8 @@ static void get_pause_cfg(struct mac_device *mac_dev, * are those set by ethtool. */ if (!mac_dev->autoneg_pause) { - *rx_pause = !!mac_dev->rx_pause; - *tx_pause = !!mac_dev->tx_pause; + *rx_pause = mac_dev->rx_pause; + *tx_pause = mac_dev->tx_pause; return; } diff --git a/drivers/net/ethernet/freescale/dpa/mac.h b/drivers/net/ethernet/freescale/dpa/mac.h index 785877f..d2ca0d0 100644 --- a/drivers/net/ethernet/freescale/dpa/mac.h +++ b/drivers/net/ethernet/freescale/dpa/mac.h @@ -67,9 +67,9 @@ struct mac_device { /* List of multicast addresses */ struct list_head mc_addr_list; - u32 autoneg_pause; - u32 rx_pause; - u32 tx_pause; + bool autoneg_pause; + bool rx_pause; + bool tx_pause; struct fm_mac_dev *(*get_mac_handle)(struct mac_device *mac_dev); int (*init_phy)(struct net_device *net_dev, struct mac_device *mac_dev); |