projectacrn / acrn-kernel

Kernel tree for ACRN
Other
92 stars 150 forks source link

Feature Request: Adding VXLAN driver for ACRN -Kernel to support multiple tenant network like from OpenStack #310

Closed tunicashashi closed 2 years ago

tunicashashi commented 4 years ago

Can we add VXLAN driver in kernel ? Or can you suggest me how can I add myself and test. Something like:

gvancuts commented 4 years ago

Hi @tunicashashi , you should be able to add it yourself by changing the config of our kernel and recompiling it.

The instructions should look like - from your local acrn-kernel repository:

Unless there are side-effects to this, this is a good candidate to be merged upstream, so please send a Pull Request to the https://github.com/projectacrn/acrn-kernel once you have tested this.

Hope this helps!

tunicashashi commented 3 years ago

Thanks, Yes, it was helpful. I have tested it on my setup. Should I push it or send for review with feature review.

acrn1@acrn1-NUC7i7DNHE:~/acrn-kernel$ git diff diff --git a/kernel_config_uefi_sos b/kernel_config_uefi_sos index 5c9f1c877248..66ee4e6b76e6 100644 --- a/kernel_config_uefi_sos +++ b/kernel_config_uefi_sos @@ -818,6 +818,10 @@ CONFIG_BLK_MQ_PCI=y CONFIG_BLK_MQ_VIRTIO=y CONFIG_BLK_PM=y

+#Yati added VXLAN +CONFIG_VXLAN=m +CONFIG_OPENVSWITCH_VXLAN=y + # acrn1@acrn1-NUC7i7DNHE:~/acrn-kernel$ In this way received error like below :

acrn1@acrn1-NUC7i7DNHE:~/acrn-kernel$ cp kernel_config_uefi_sos .config acrn1@acrn1-NUC7i7DNHE:~/acrn-kernel$ make all scripts/kconfig/conf --syncconfig Kconfig .config:2099:warning: override: reassigning to symbol VXLAN *

using make menuconfig was fine

$ make menuconfig

fuzhongl commented 2 years ago

@tunicashashi Thanks for this patch! Normally, the kernel config is maintained by self since different people may needs different config.