Re: [vpp-dev] create af_xdp interface with exception kernel info "Kernel error message: virtio_net: Too few free TX rings available"

2022-04-14 Thread Smith Beirvin
en > > >> -Original Message- >> From: vpp-dev@lists.fd.io On Behalf Of Smith Beirvin >> >> Sent: Wednesday, April 13, 2022 5:48 >> To: vpp-dev@lists.fd.io >> Subject: [vpp-dev] create af_xdp interface with exception kernel info >> "Ker

Re: [vpp-dev] create af_xdp interface with exception kernel info "Kernel error message: virtio_net: Too few free TX rings available"

2022-04-14 Thread Smith Beirvin
to > src/plugins/af_xdp/device.c:af_xdp_create_queue() succeed prior to the > crash: that would confirm whether the kernel is lying to us or if our > logic is buggy > > Best > ben > > >> -Original Message- >> From: vpp-dev@lists.fd.io On Behalf Of Smith

Re: [vpp-dev] create af_xdp interface with exception kernel info "Kernel error message: virtio_net: Too few free TX rings available"

2022-04-14 Thread Smith Beirvin
ueue() succeed prior to the > crash: that would confirm whether the kernel is lying to us or if our > logic is buggy > > Best > ben > > >> -Original Message- >> From: vpp-dev@lists.fd.io On Behalf Of Smith Beirvin >> >> Sent: Wednesday, Ap

Re: [vpp-dev] create af_xdp interface with exception kernel info "Kernel error message: virtio_net: Too few free TX rings available"

2022-04-14 Thread Smith Beirvin
[Edited Message Follows] HI  Benoit: Thanks for your reply. I have done the gdb test to track af_xdp_create_queue() function. Acutlly the  af_xdp_create_queue() return error value, The function call flow is as below, I doubt that Linux kernel version 5.4 doesn't support af_xdp fucntion for virti

Re: [vpp-dev] create af_xdp interface with exception kernel info "Kernel error message: virtio_net: Too few free TX rings available"

2022-04-14 Thread Smith Beirvin
[Edited Message Follows] HI Benoi: Thanks for your reply. I have done the gdb test to track af_xdp_create_queue() function. Acutlly the  af_xdp_create_queue() return error value, The function call flow is as below, I doubt that Linux kernel version 5.4 doesn't support af_xdp fucntion for virtio

Re: [vpp-dev] create af_xdp interface with exception kernel info "Kernel error message: virtio_net: Too few free TX rings available"

2022-04-14 Thread Smith Beirvin
vppctl enable tap-inject create interface af_xdp host-if ens9 num-rx-queues all set int mac address ens9/0 52:54:00:ba:be:14 sudo ifconfig vpp0 inet 172.16.2.135 netmask 255.255.255.0 up hw ether 52:54:00:ba:be:14 delete interface af_xdp ens9/0 af_xdp_create_if() -->af_xdp_create_queue() -->xsk

Re: [vpp-dev] create af_xdp interface with exception kernel info "Kernel error message: virtio_net: Too few free TX rings available"

2022-04-14 Thread Smith Beirvin
On Wed, Apr 13, 2022 at 03:48 PM, Benoit Ganne (bganne) wrote: > > single -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#21260): https://lists.fd.io/g/vpp-dev/message/21260 Mute This Topic: https://lists.fd.io/mt/90434107/21656 Group Owner: vpp-de

[vpp-dev] #vpp-dev AF_XDP interface create and delete problem

2022-03-31 Thread Smith Beirvin
Hi VPP fellows: I got problems when I tried to create and delete AF_XDP interface. Pls give me some suggestions to figure out the problem. The issue description is as below: Step 1: create af_xdp interface based on host if wlan0: create interface af_xdp host-if wlan0 num-rx-queues 1 Step 2: dele

Re: [vpp-dev] Coredump occur when duplicate a packet at "interface-output" arc. #vpp

2022-03-07 Thread Smith Beirvin
On Mon, Mar 7, 2022 at 04:38 PM, Benoit Ganne (bganne) wrote: > > instead Hi Benoit Bro, I think you are right, thanks again. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#20970): https://lists.fd.io/g/vpp-dev/message/20970 Mute This Topic: http

Re: [vpp-dev] Coredump occur when duplicate a packet at "interface-output" arc. #vpp

2022-03-07 Thread Smith Beirvin
On Mon, Mar 7, 2022 at 04:38 PM, Benoit Ganne (bganne) wrote: > > bi0 okay, I will check again, thanks -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#20969): https://lists.fd.io/g/vpp-dev/message/20969 Mute This Topic: https://lists.fd.io/mt/8960

Re: [vpp-dev] Coredump occur when duplicate a packet at "interface-output" arc. #vpp

2022-03-07 Thread Smith Beirvin
Hi Buddy, thanks for reply, I already take account into the outbond issue regarding two packets increments at one loop( if (is_send_syn && (1 < n_left_to_next)) ). Actually, I couldn't find logical issue on source code. I will read “l2-flood” node soure code for reference. -=-=-=-=-=-=-=-=-=-=-

[vpp-dev] Coredump occur when duplicate a packet at "interface-output" arc. #vpp

2022-03-06 Thread Smith Beirvin
Hi fellows: I got a problem when duplicate a packet at "interface-output" arc, this will trigger a coredump as below. while I can't find any issue for the sorce code. So pls help me. Coredump information; Mar  7 02:54:24 localhost vnet[9542]: vlib_buffer_validate_alloc_free:367: freeing known-

[vpp-dev] [Bug or Not] QoS l2-policer-classify match question #vpp_qos

2021-11-17 Thread Smith Beirvin
Hi VPP fellows: Recently I try to do the qos rate limit based on loop port(used for ESP/VxLAN encapspulation). But I found that "l2-policer-classify" node wouldn't hit the packet, by contrast, acl match can work fine.So I track the source code for "l2-policer-classify" node fucntion "policer_cla

Re: [vpp-dev] how to configure vpp acl to match VxLAN field

2021-10-29 Thread Smith Beirvin
Hi guys: I figure out that use the following command can match VxLAN fied. configure policer name policy1 cir 800 cb 9 rate kbps round closest type 1r2c conform-action transmit exceed-action drop classify table mask hex 00ff