Skip to content

Commit

Permalink
drivers: move iavf common folder to iavf net
Browse files Browse the repository at this point in the history
The common/iavf driver folder contains the base code for the iavf
driver, which is also linked against by the ice driver and others.
However, there is no need for this to be in common, and we can
move it to the net/intel/iavf as a base code driver. This involves
updating dependencies that were on common/iavf to net/iavf

Signed-off-by: Bruce Richardson <[email protected]>
Acked-by: Ian Stokes <[email protected]>
  • Loading branch information
bruce-richardson committed Feb 11, 2025
1 parent efe7bfd commit 2d68cec
Show file tree
Hide file tree
Showing 24 changed files with 32 additions and 24 deletions.
1 change: 1 addition & 0 deletions devtools/libabigail.abignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
; This is not a libabigail rule (see check-abi.sh).
; This is used for driver removal and other special cases like mlx glue libs.
;
; SKIP_LIBRARY=librte_common_iavf
; SKIP_LIBRARY=librte_common_idpf
; SKIP_LIBRARY=librte_common_mlx5_glue
; SKIP_LIBRARY=librte_net_mlx4_glue
Expand Down
5 changes: 4 additions & 1 deletion doc/guides/rel_notes/release_25_03.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,12 @@ API Changes
``-Denable_drivers=net/intel/e1000``.

* The driver ``common/idpf`` has been merged into the ``net/intel/idpf`` driver.
This change should have no impact to end applications, but,
Similarly, the ``common/iavf`` driver has been merged into the ``net/intel/iavf`` driver.
These changes should have no impact to end applications, but,
when specifying the ``idpf`` or ``cpfl`` net drivers to meson via ``-Denable_drivers`` option,
there is no longer any need to also specify the ``common/idpf`` driver.
In the same way, when specifying the ``iavf`` or ``ice`` net drivers,
there is no need to also specify the ``common/iavf`` driver.
Note, however, ``net/intel/cpfl`` driver now depends upon the ``net/intel/idpf`` driver.


Expand Down
13 changes: 0 additions & 13 deletions drivers/common/iavf/version.map

This file was deleted.

1 change: 0 additions & 1 deletion drivers/common/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ std_deps = ['eal']
drivers = [
'cpt',
'dpaax',
'iavf',
'ionic',
'mvep',
'octeontx',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 9 additions & 4 deletions drivers/net/intel/iavf/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ endif

testpmd_sources = files('iavf_testpmd.c')

deps += ['common_iavf', 'security', 'cryptodev']
deps += ['security', 'cryptodev']

sources = files(
'base/iavf_adminq.c',
'base/iavf_common.c',
'base/iavf_impl.c',

'iavf_ethdev.c',
'iavf_rxtx.c',
'iavf_vchnl.c',
Expand All @@ -20,8 +24,9 @@ sources = files(
'iavf_ipsec_crypto.c',
'iavf_fsub.c',
)
includes += include_directories('base')

if arch_subdir == 'x86' and is_variable('static_rte_common_iavf')
if arch_subdir == 'x86'
sources += files('iavf_rxtx_vec_sse.c')

if is_windows and cc.get_id() != 'clang'
Expand All @@ -30,7 +35,7 @@ if arch_subdir == 'x86' and is_variable('static_rte_common_iavf')

iavf_avx2_lib = static_library('iavf_avx2_lib',
'iavf_rxtx_vec_avx2.c',
dependencies: [static_rte_ethdev, static_rte_common_iavf],
dependencies: [static_rte_ethdev],
include_directories: includes,
c_args: [cflags, '-mavx2'])
objs += iavf_avx2_lib.extract_objects('iavf_rxtx_vec_avx2.c')
Expand All @@ -43,7 +48,7 @@ if arch_subdir == 'x86' and is_variable('static_rte_common_iavf')
endif
iavf_avx512_lib = static_library('iavf_avx512_lib',
'iavf_rxtx_vec_avx512.c',
dependencies: [static_rte_ethdev, static_rte_common_iavf],
dependencies: [static_rte_ethdev],
include_directories: includes,
c_args: avx512_args)
objs += iavf_avx512_lib.extract_objects('iavf_rxtx_vec_avx512.c')
Expand Down
14 changes: 14 additions & 0 deletions drivers/net/intel/iavf/version.map
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,17 @@ EXPERIMENTAL {
# added in 21.11
rte_pmd_ifd_dynflag_proto_xtr_ipsec_crypto_said_mask;
};

INTERNAL {
global:

iavf_aq_send_msg_to_pf;
iavf_clean_arq_element;
iavf_init_adminq;
iavf_set_mac_type;
iavf_shutdown_adminq;
iavf_vf_parse_hw_config;
iavf_vf_reset;

local: *;
};
7 changes: 3 additions & 4 deletions drivers/net/intel/ice/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ sources = files(

testpmd_sources = files('ice_testpmd.c')

deps += ['hash', 'net', 'common_iavf']
deps += ['hash', 'net', 'net_iavf']
includes += include_directories('base')

if arch_subdir == 'x86'
Expand All @@ -30,7 +30,7 @@ if arch_subdir == 'x86'

ice_avx2_lib = static_library('ice_avx2_lib',
'ice_rxtx_vec_avx2.c',
dependencies: [static_rte_ethdev, static_rte_kvargs, static_rte_hash],
dependencies: [static_rte_ethdev, static_rte_hash],
include_directories: includes,
c_args: [cflags, '-mavx2'])
objs += ice_avx2_lib.extract_objects('ice_rxtx_vec_avx2.c')
Expand All @@ -43,8 +43,7 @@ if arch_subdir == 'x86'
endif
ice_avx512_lib = static_library('ice_avx512_lib',
'ice_rxtx_vec_avx512.c',
dependencies: [static_rte_ethdev,
static_rte_kvargs, static_rte_hash],
dependencies: [static_rte_ethdev, static_rte_hash],
include_directories: includes,
c_args: avx512_args)
objs += ice_avx512_lib.extract_objects('ice_rxtx_vec_avx512.c')
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/intel/idpf/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if is_windows
subdir_done()
endif

includes += include_directories('../../../common/iavf')
includes += include_directories('../iavf/base')

sources = files(
'idpf_common_device.c',
Expand Down

0 comments on commit 2d68cec

Please sign in to comment.