버전 비교

  • 이 줄이 추가되었습니다.
  • 이 줄이 삭제되었습니다.
  • 서식이 변경되었습니다.

...

코드 블럭
git clone git://dpdk.org/dpdk-kmods
cp -r dpdk-kmods/linux/igb_uio dpdk-23.03/kernel/linux/
cd dpdk-23.03/kernel/linux/igb_uio
vi meson.build

""""""""""

# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation

mkfile = custom_target('igb_uio_makefile',
        output: 'Makefile',
        command: ['touch', '@OUTPUT@'])

kernel_dir = '/lib/modules/' + kernel_version
custom_target('igb_uio',
        input: ['igb_uio.c', 'Kbuild'],
        output: 'igb_uio.ko',
        command: ['make', '-C', kernel_dir + '/build',
                'M=' + meson.current_build_dir(),
                'src=' + meson.current_source_dir(),
                'EXTRA_CFLAGS=-I' + meson.current_source_dir() +
                        '/../../../lib/librte_eal/include',
                'modules'],
        depends: mkfile,
        install: true,
        install_dir: kernel_dir + '/extra/dpdk',
        build_by_default: get_option('enable_kmods'))

""""""

cd .. (in meson.build -> dpdk-23.03/kernel/linux)
add the following:
subdirs = ['kni', 'igb_uio']

Build dpdk and install using meson and ninja

코드 블럭
cd dpdk-23.03
meson setup build
cd build
ninja
ninja install
ldconfig

Download dpdk from official website

코드 블럭
wget https://fast.dpdk.org/rel/dpdk-23.03.tar.xz
tar xJf dpdk-23.03.tar.xz

Build dpdk and install using meson and ninja

코드 블럭
cd dpdk-23.03
meson setup build
cd build
ninja
ninja install
ldconfig

Set hugepage

정보

Set the hugepage to 1G and number of page as per your requirements (just increase 'nr_hugepages' if the eval mem allocation failed).

There are three ways to do it as follows.

...