]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bnxt_en: fix typo in bnxt_set_coalesce
authorAndy Gospodarek <gospo@broadcom.com>
Fri, 3 Nov 2017 07:32:38 +0000 (03:32 -0400)
committerJack Vogel <jack.vogel@oracle.com>
Fri, 9 Mar 2018 05:01:17 +0000 (21:01 -0800)
Orabug: 2764835527648339

Recent refactoring of coalesce settings contained a typo that prevents
receive settings from being set properly.

Fixes: 18775aa8a91f ("bnxt_en: Reorganize the coalescing parameters.")
Signed-off-by: Andy Gospodarek <gospo@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit de4a10ef6eff0eb0ced97a39dc3edd0d3101b6ed)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c

index 002dd07e3a8a57091158eeb79ed5464eab321b81..10c07d785295c0dae3c7fb3cb7fcaa2168afe723 100644 (file)
@@ -88,7 +88,7 @@ static int bnxt_set_coalesce(struct net_device *dev,
        hw_coal->coal_ticks_irq = coal->rx_coalesce_usecs_irq;
        hw_coal->coal_bufs_irq = coal->rx_max_coalesced_frames_irq * mult;
 
-       hw_coal = &bp->rx_coal;
+       hw_coal = &bp->tx_coal;
        mult = hw_coal->bufs_per_record;
        hw_coal->coal_ticks = coal->tx_coalesce_usecs;
        hw_coal->coal_bufs = coal->tx_max_coalesced_frames * mult;