Skip to content

Commit

Permalink
e1000: remove duplicated phy codes
Browse files Browse the repository at this point in the history
Add two files base.c and base.h to reduce the redundancy
in the silicon family code.
Remove the code duplication from e1000_82575 files.
Clean family specific functions from base.
Fix up a stray and duplicate function declaration.

Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Signed-off-by: Guinan Sun <guinanx.sun@intel.com>
Reviewed-by: Wei Zhao <wei.zhao1@intel.com>

Approved by:	imp
Obtained from:	DPDK (44dddd14059f151f39f7e075b887decfc9a10f11)
MFC after:	1 week

(cherry picked from commit 6b9d35f)
  • Loading branch information
Guinan Sun authored and kev009 committed Sep 24, 2021
1 parent 666848a commit 1d9da96
Show file tree
Hide file tree
Showing 13 changed files with 578 additions and 420 deletions.
2 changes: 2 additions & 0 deletions sys/conf/files
Expand Up @@ -1691,6 +1691,8 @@ dev/e1000/e1000_i210.c optional em \
compile-with "${NORMAL_C} -I$S/dev/e1000"
dev/e1000/e1000_api.c optional em \
compile-with "${NORMAL_C} -I$S/dev/e1000"
dev/e1000/e1000_base.c optional em \
compile-with "${NORMAL_C} -I$S/dev/e1000"
dev/e1000/e1000_mac.c optional em \
compile-with "${NORMAL_C} -I$S/dev/e1000"
dev/e1000/e1000_manage.c optional em \
Expand Down

0 comments on commit 1d9da96

Please sign in to comment.