diff options
author | Mitch Williams <mitch.a.williams@intel.com> | 2015-10-26 19:44:40 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2015-12-01 22:56:30 -0800 |
commit | 0dd438d8ad5db85c1a805ce2244252e37d5586a0 (patch) | |
tree | 1f1934e9de8a4ae53c58a55ab5ab93cf71a88d0d /lib/netdev-notifier-error-inject.c | |
parent | 7d96ba1a8b7c36d1f4a04dc40e031b6f8c677496 (diff) | |
download | linux-0dd438d8ad5db85c1a805ce2244252e37d5586a0.tar.gz linux-0dd438d8ad5db85c1a805ce2244252e37d5586a0.tar.bz2 linux-0dd438d8ad5db85c1a805ce2244252e37d5586a0.zip |
i40evf: allocate ring structs dynamically
Instead of awkwardly keeping a fixed array of pointers in the adapter
struct and then allocating ring structs individually, just keep a single
pointer and allocate a single blob for the arrays. This simplifies code,
shrinks the adapter structure, and future-proofs the driver by not
limiting the number of rings we can handle.
Change-ID: I31334ff911a6474954232cfe4bc98ccca3c769ff
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions