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.9/drivers/net/ethernet/mellanox/mlx4/en_rx.c

    r31574 r31884  
    445445
    446446                ring->stride = stride;
    447                 if (ring->stride <= TXBB_SIZE)
     447                if (ring->stride <= TXBB_SIZE) {
     448                        /* Stamp first unused send wqe */
     449                        __be32 *ptr = (__be32 *)ring->buf;
     450                        __be32 stamp = cpu_to_be32(1 << STAMP_SHIFT);
     451                        *ptr = stamp;
     452                        /* Move pointer to start of rx section */
    448453                        ring->buf += TXBB_SIZE;
     454                }
    449455
    450456                ring->log_stride = ffs(ring->stride) - 1;
Note: See TracChangeset for help on using the changeset viewer.