Merge branch 'bnxt_en-fixes'
Michael Chan says: ==================== bnxt_en: Bug fixes. 3 small bug fix patches for net. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
0260a2f4e2
|
@ -1490,10 +1490,11 @@ static void bnxt_free_tx_skbs(struct bnxt *bp)
|
||||||
|
|
||||||
last = tx_buf->nr_frags;
|
last = tx_buf->nr_frags;
|
||||||
j += 2;
|
j += 2;
|
||||||
for (k = 0; k < last; k++, j = NEXT_TX(j)) {
|
for (k = 0; k < last; k++, j++) {
|
||||||
|
int ring_idx = j & bp->tx_ring_mask;
|
||||||
skb_frag_t *frag = &skb_shinfo(skb)->frags[k];
|
skb_frag_t *frag = &skb_shinfo(skb)->frags[k];
|
||||||
|
|
||||||
tx_buf = &txr->tx_buf_ring[j];
|
tx_buf = &txr->tx_buf_ring[ring_idx];
|
||||||
dma_unmap_page(
|
dma_unmap_page(
|
||||||
&pdev->dev,
|
&pdev->dev,
|
||||||
dma_unmap_addr(tx_buf, mapping),
|
dma_unmap_addr(tx_buf, mapping),
|
||||||
|
@ -3406,7 +3407,7 @@ static int hwrm_ring_free_send_msg(struct bnxt *bp,
|
||||||
struct hwrm_ring_free_output *resp = bp->hwrm_cmd_resp_addr;
|
struct hwrm_ring_free_output *resp = bp->hwrm_cmd_resp_addr;
|
||||||
u16 error_code;
|
u16 error_code;
|
||||||
|
|
||||||
bnxt_hwrm_cmd_hdr_init(bp, &req, HWRM_RING_FREE, -1, -1);
|
bnxt_hwrm_cmd_hdr_init(bp, &req, HWRM_RING_FREE, cmpl_ring_id, -1);
|
||||||
req.ring_type = ring_type;
|
req.ring_type = ring_type;
|
||||||
req.ring_id = cpu_to_le16(ring->fw_ring_id);
|
req.ring_id = cpu_to_le16(ring->fw_ring_id);
|
||||||
|
|
||||||
|
@ -4819,8 +4820,6 @@ bnxt_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *stats)
|
||||||
|
|
||||||
stats->multicast += le64_to_cpu(hw_stats->rx_mcast_pkts);
|
stats->multicast += le64_to_cpu(hw_stats->rx_mcast_pkts);
|
||||||
|
|
||||||
stats->rx_dropped += le64_to_cpu(hw_stats->rx_drop_pkts);
|
|
||||||
|
|
||||||
stats->tx_dropped += le64_to_cpu(hw_stats->tx_drop_pkts);
|
stats->tx_dropped += le64_to_cpu(hw_stats->tx_drop_pkts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue