i40e/i40evf: Add call to u64_stats_init to init
authorCarolyn Wyborny <carolyn.wyborny@intel.com>
Sat, 24 Jan 2015 09:58:32 +0000 (09:58 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 9 Feb 2015 09:50:36 +0000 (01:50 -0800)
This patch adds a call to u64_stats_init to Rx setup.
This done in order to avoid lockdep errors with seqcount on newer kernels.

Change-ID: Ia8ba8f0bcbd1c0e926f97d70aeee4ce4fd055e93
Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40evf/i40e_txrx.c

index 5aa6ef15f241acc0745b458e0a07a47c9af144d9..f4d6d90572d1bf806f84ffc1382d3f3e221ae387 100644 (file)
@@ -1098,6 +1098,8 @@ int i40e_setup_rx_descriptors(struct i40e_ring *rx_ring)
        if (!rx_ring->rx_bi)
                goto err;
 
+               u64_stats_init(rx_ring->syncp);
+
        /* Round up to nearest 4K */
        rx_ring->size = ring_is_16byte_desc_enabled(rx_ring)
                ? rx_ring->count * sizeof(union i40e_16byte_rx_desc)
index 4bf15da509e33f0ceec25ba95ce2e3d6e9313fe4..459499a47ca3d053ac7b3e469ec2f7b712cfb5d0 100644 (file)
@@ -596,6 +596,8 @@ int i40evf_setup_rx_descriptors(struct i40e_ring *rx_ring)
        if (!rx_ring->rx_bi)
                goto err;
 
+               u64_stats_init(rx_ring->syncp);
+
        /* Round up to nearest 4K */
        rx_ring->size = ring_is_16byte_desc_enabled(rx_ring)
                ? rx_ring->count * sizeof(union i40e_16byte_rx_desc)