Allow access to statistics data not only from sysctl handlers.
Submitted by: Boris Misenov <Boris.Misenov at oktetlabs.ru>
Sponsored by: Solarflare Communications, Inc.
Differential D1707
sfxge: access statistics buffers under port lock arybchik on Jan 28 2015, 9:12 AM. Authored by Tags None Referenced Files
Subscribers
Details
Allow access to statistics data not only from sysctl handlers. Submitted by: Boris Misenov <Boris.Misenov at oktetlabs.ru>
Diff Detail
Event TimelineComment Actions If you look at other drivers you'll see they have #define'd macros for the locks, rather than direct calls. This allows us to name the lock in the macro. See, for instance, this example from cxgbe/adapter.h: #define ADAPTER_LOCK(sc) mtx_lock(&(sc)->sc_lock) You should move to this model and then update the patch. Comment Actions I've published review request D1772 to add macros. Please, review. |