diff options
author | 2018-10-26 11:44:39 -0700 | |
---|---|---|
committer | 2018-11-20 11:39:03 -0800 | |
commit | 7afdbc903a7c22510bbf5a82866e1a607e2f0997 (patch) | |
tree | 778feeb2923909b85313365ca53670fc880e7490 /net/lapb/lapb_timer.c | |
parent | ice: Do autoneg based on VSI state (diff) | |
download | linux-dev-7afdbc903a7c22510bbf5a82866e1a607e2f0997.tar.xz linux-dev-7afdbc903a7c22510bbf5a82866e1a607e2f0997.zip |
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 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions