]> Pileus Git - ~andy/linux/blobdiff - drivers/net/ethernet/emulex/benet/be_main.c
net: Explicitly initialize u64_stats_sync structures for lockdep
[~andy/linux] / drivers / net / ethernet / emulex / benet / be_main.c
index 2c38cc402119c763021ea77461455fd0fa8ac035..edd75950855a558b82e3bbd87908b5794483be4e 100644 (file)
@@ -2047,6 +2047,9 @@ static int be_tx_qs_create(struct be_adapter *adapter)
                if (status)
                        return status;
 
+               u64_stats_init(&txo->stats.sync);
+               u64_stats_init(&txo->stats.sync_compl);
+
                /* If num_evt_qs is less than num_tx_qs, then more than
                 * one txq share an eq
                 */
@@ -2108,6 +2111,7 @@ static int be_rx_cqs_create(struct be_adapter *adapter)
                if (rc)
                        return rc;
 
+               u64_stats_init(&rxo->stats.sync);
                eq = &adapter->eq_obj[i % adapter->num_evt_qs].q;
                rc = be_cmd_cq_create(adapter, cq, eq, false, 3);
                if (rc)