lkml.org 
[lkml]   [2018]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[net-next PATCH v3 08/11] net: netcp: ethss: re-use stats handling code for 2u hardware
    Date
    The stats block in 2u cpsw hardware is similar to the one on nu
    and hence handle it in a similar way by using a macro that includes
    2u hardware as well.

    Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
    ---
    drivers/net/ethernet/ti/netcp_ethss.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/net/ethernet/ti/netcp_ethss.c b/drivers/net/ethernet/ti/netcp_ethss.c
    index 33d70d4..7b3b373 100644
    --- a/drivers/net/ethernet/ti/netcp_ethss.c
    +++ b/drivers/net/ethernet/ti/netcp_ethss.c
    @@ -3394,7 +3394,7 @@ static int set_gbenu_ethss_priv(struct gbe_priv *gbe_dev,
    gbe_dev->num_stats_mods = gbe_dev->max_num_ports;
    gbe_dev->et_stats = gbenu_et_stats;

    - if (IS_SS_ID_NU(gbe_dev))
    + if (IS_SS_ID_MU(gbe_dev))
    gbe_dev->num_et_stats = GBENU_ET_STATS_HOST_SIZE +
    (gbe_dev->max_num_slaves * GBENU_ET_STATS_PORT_SIZE);
    else
    --
    1.9.1
    \
     
     \ /
      Last update: 2018-04-02 16:38    [W:3.111 / U:0.172 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site