aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/ice/ice_common.c
diff options
context:
space:
mode:
authorBruce Allan <bruce.w.allan@intel.com>2018-10-26 11:44:39 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2018-11-20 11:39:03 -0800
commit7afdbc903a7c22510bbf5a82866e1a607e2f0997 (patch)
tree778feeb2923909b85313365ca53670fc880e7490 /drivers/net/ethernet/intel/ice/ice_common.c
parentd38b08834fc35720ad685e9e2f6d865f681fbc34 (diff)
ice: Cleanup duplicate control queue code
1. Assigning the register offset and mask values contains duplicate code that can easily be replaced with a macro. 2. Separate functions for freeing send queue and receive queue rings are not needed; replace with a single function that uses a pointer to the struct ice_ctl_q_ring structure as a parameter instead of a pointer to the struct ice_ctl_q_info structure. 3. Initializing register settings for both send queue and receive queue contains duplicate code that can easily be replaced with a helper function. 4. Separate functions for freeing send queue and receive queue buffers are not needed; duplicate code can easily be replaced with a macro. Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_common.c')
0 files changed, 0 insertions, 0 deletions