libnl: Add kernel configuration for test suite

This commit is contained in:
Xi Ruoyao 2023-12-05 15:50:06 +08:00
parent 5a809f3053
commit 2dd6b6bc66
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3
3 changed files with 102 additions and 6 deletions

View File

@ -0,0 +1,44 @@
# Forced by !EXPERT
NAMESPACES = { value = '*', forced = true }
USER_NS='*'
NET_NS='*'
NET='*'
INET='*'
IP_ADVANCED_ROUTER='*'
IP_MULTIPLE_TABLES='*'
NET_IPIP='*M'
NET_IPGRE_DEMUX='*M'
NET_IPGRE='*M'
NET_IPVTI='*M'
IPV6='*'
IPV6_TUNNEL='*M'
IPV6_SIT='*M'
IPV6_MULTIPLE_TABLES='*'
NETFILTER='*'
NF_TABLES='*M'
NF_TABLES_NETDEV='*'
# forced by NFT_FWD_NETDEV
NF_DUP_NETDEV = { value = '*M', forced = true }
NFT_FWD_NETDEV = '*M'
BRIDGE='*M'
# forced by IPVLAN
NET_L3_MASTER_DEV = { value = '*', forced = true }
VLAN_8021Q='*M'
NETDEVICES='*'
NET_CORE='*'
BONDING='*M'
DUMMY='*M'
IFB='*M'
MACVLAN='*M'
MACVTAP='*M'
IPVLAN='*M'
VXLAN='*M'
MACSEC='*M'
VETH='*M'
NET_VRF='*M'

View File

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><emphasis role='blue'>G</emphasis>eneral setup ---&gt;
-*- N<emphasis role='blue'>a</emphasis>mespaces support ---&gt; [NAMESPACES]
[*] <emphasis role='blue'>U</emphasis>ser namespace [USER_NS]
[*] N<emphasis role='blue'>e</emphasis>twork namespace [NET_NS]
[*] N<emphasis role='blue'>e</emphasis>tworking support ---&gt; [NET]
N<emphasis role='blue'>e</emphasis>tworking options ---&gt;
[*] <emphasis role='blue'>T</emphasis>CP/IP networking [INET]
[*] <emphasis role='blue'>I</emphasis>P: advanced router [IP_ADVANCED_ROUTER]
[*] <emphasis role='blue'>I</emphasis>P: policy routing [IP_MULTIPLE_TABLES]
&lt;*/M&gt; <emphasis role='blue'>I</emphasis>P: tunneling [NET_IPIP]
&lt;*/M&gt; <emphasis role='blue'>I</emphasis>P: GRE demultiplexer [NET_IPGRE_DEMUX]
&lt;*/M&gt; <emphasis role='blue'>I</emphasis>P: GRE tunnels over IP [NET_IPGRE]
&lt;*/M&gt; <emphasis role='blue'>V</emphasis>irtual (secure) IP: tunneling [NET_IPVTI]
&lt;*&gt; <emphasis role='blue'>T</emphasis>he IPv6 protocol ---&gt; [IPV6]
&lt;*/M&gt; <emphasis role='blue'>I</emphasis>Pv6: IPv6-in-IPv4 tunnel (SIT driver) [IPV6_SIT]
&lt;*/M&gt; <emphasis role='blue'>I</emphasis>Pv6: IP-in-IPv6 tunnel (RFC2473) [IPV6_TUNNEL]
[*] <emphasis role='blue'>I</emphasis>Pv6: Multiple Routing Tables [IPV6_MULTIPLE_TABLES]
[*] N<emphasis role='blue'>e</emphasis>twork packet filtering framework (Netfilter) ---&gt; [NETFILTER]
<emphasis role='blue'>C</emphasis>ore Netfilter Configuration ---&gt;
&lt;*/M&gt; N<emphasis role='blue'>e</emphasis>tfilter nf_tables support [NF_TABLES]
[*] N<emphasis role='blue'>e</emphasis>tfilter nf_tables netdev tables support [NF_TABLES_NETDEV]
{*/M} N<emphasis role='blue'>e</emphasis>tfilter packet duplication support [NF_DUP_NETDEV]
&lt;*/M&gt; N<emphasis role='blue'>e</emphasis>tfilter nf_tables netdev packet forwarding support
... [NFT_FWD_NETDEV]
&lt;*/M&gt; <emphasis role='blue'>8</emphasis>02.1d Ethernet Bridging [BRIDGE]
&lt;*/M&gt; <emphasis role='blue'>8</emphasis>02.1Q/802.1ad VLAN Support [VLAN_8021Q]
-*- <emphasis role='blue'>L</emphasis>3 Master device support [NET_L3_MASTER_DEV]
<emphasis role='blue'>D</emphasis>evice Drivers ---&gt;
[*] N<emphasis role='blue'>e</emphasis>twork device support ---&gt; [NETDEVICES]
[*] N<emphasis role='blue'>e</emphasis>twork core driver support [NET_CORE]
&lt;*/M&gt; <emphasis role='blue'>B</emphasis>onding driver support [BONDING]
&lt;*/M&gt; <emphasis role='blue'>D</emphasis>ummy net driver support [DUMMY]
&lt;*/M&gt; <emphasis role='blue'>I</emphasis>ntermediate Functional Block support [IFB]
&lt;*/M&gt; M<emphasis role='blue'>A</emphasis>C-VLAN support [MACVLAN]
&lt;*/M&gt; M<emphasis role='blue'>A</emphasis>C-VLAN based tap driver [MACVTAP]
&lt;*/M&gt; <emphasis role='blue'>I</emphasis>P-VLAN support [IPVLAN]
&lt;*/M&gt; <emphasis role='blue'>V</emphasis>irtual eXtensible Local Area Network (VXLAN) [VXLAN]
&lt;*/M&gt; <emphasis role='blue'>I</emphasis>EEE 802.1AE MAC-level encryption (MACsec) [MACSEC]
&lt;*/M&gt; <emphasis role='blue'>V</emphasis>irtual ethernet pair device [VETH]
&lt;*/M&gt; <emphasis role='blue'>V</emphasis>irtual Routing and Forwarding (Lite) [NET_VRF]</screen>

View File

@ -144,12 +144,17 @@ make</userinput></screen>
</note>
<para>
This package does not come with a working test suite.
<!--To test the results, issue: <command>make check</command>.
One subtest is known to fail.-->
<!-- If the kernel does not have CONFIG_IPC_NS=y, one subtest tests/check-all
fails. If it does have it, the subtest still fails in a different place
for unknown reasons. Version 3.6.0. -->
If you wish to run the tests, check that the following options
are enabled in the kernel configuration and recompile the kernel
if necessary. Some of them may not be strictly needed, but they
should support a complete test coverage.
</para>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="libnl-test-kernel.xml"/>
<para>
To test the results, issue: <command>make check</command>.
</para>
<para>