Ignore:
Timestamp:
Apr 18, 2017, 8:47:31 AM (6 weeks ago)
Author:
brainslayer
Message:

update kernels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.4/drivers/net/ethernet/mellanox/mlx4/en_rx.c

    r31421 r31884  
    440440
    441441                ring->stride = stride;
    442                 if (ring->stride <= TXBB_SIZE)
     442                if (ring->stride <= TXBB_SIZE) {
     443                        /* Stamp first unused send wqe */
     444                        __be32 *ptr = (__be32 *)ring->buf;
     445                        __be32 stamp = cpu_to_be32(1 << STAMP_SHIFT);
     446                        *ptr = stamp;
     447                        /* Move pointer to start of rx section */
    443448                        ring->buf += TXBB_SIZE;
     449                }
    444450
    445451                ring->log_stride = ffs(ring->stride) - 1;
Note: See TracChangeset for help on using the changeset viewer.