Hi Pim,

Thanks for the quick reply. I did set the interfaces up before changing the
rx-mode. I tried 'adaptive' mode and it didn't make any difference either.

BTW, I'm using Linux control plane plugin and created a tap interface for
each DPDPK interface. Another issue I'm having is that 'show
hardware-interface' shows nothing here, regardless of the rx-mode.

Regards,
Xiaodong

On Wed, Jul 20, 2022 at 1:06 PM Pim van Pelt <p...@ipng.nl> wrote:

> Hoi Xiaodong,
>
> One thing to note, is that the interface must be state 'up' before changes
> are affected. If I set to 'adaptive' (best of both worlds, interrupts in
> low load, polling in higher load':
>
> DBGvpp# set interface rx-mode GigabitEthernet3/0/0 adaptive
>
>
>
> DBGvpp# set interface state GigabitEthernet3/0/1 down
>
> DBGvpp# set interface rx-mode GigabitEthernet3/0/1 adaptive
>
> (no change)
>
>
> DBGvpp# show logging
>
> 2022/07/20 20:03:34:656 error      interface/rx-q setting rx mode on the
> interface GigabitEthernet3/0/1 queue-id 0 failed.
>
>    dpdk_interface_rx_mode_change: unsupported op (is the interface up?)
>
>
> DBGvpp# set interface state GigabitEthernet3/0/1 up
>
> DBGvpp# set interface rx-mode GigabitEthernet3/0/1 adaptive
>
> DBGvpp# show hardware-interfaces GigabitEthernet3/0/1
>
>               Name                Idx   Link  Hardware
>
> GigabitEthernet3/0/1               2     up   GigabitEthernet3/0/1
>
>   Link speed: 1 Gbps
>
>   RX Queues:
>
>     queue thread         mode
>
>     0     vpp_wk_0 (1)   padaptive
>
> ...
>
>
>
>
> One side note:
> - before setting rx-mode, "show hardware-interfaces" without arguments
> will list them all.
> - after setting the rx-mode, "show hardware-interfaces" returns empty and
> requires a specific interface to be named.
>
> However, CPU load goes down and polling clearly stops. Maybe that helps :)
>
> groet,
> Pim
>
> On Wed, Jul 20, 2022 at 9:44 PM Xiaodong Xu <stid.s...@gmail.com> wrote:
>
>> Hi,
>>
>> When I start vpp, the CPU usage will be close to 100% on the core that
>> vpp is running on. I know this is normal because dpdk is running in poll
>> mode.
>> However when I set the rx-mode to 'interrupt', it doesn't make any
>> difference. The command line I use looks like:
>>
>> # set interface rx-mode [ifname] interrupt
>>
>> Did I miss anything? Thanks for your attention and any suggestions are
>> welcome.
>>
>> Regards,
>> Xiaodong
>>
>>
>>
>>
>>
>
> --
> Pim van Pelt <p...@ipng.nl>
> PBVP1-RIPE - http://www.ipng.nl/
>
> 
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21696): https://lists.fd.io/g/vpp-dev/message/21696
Mute This Topic: https://lists.fd.io/mt/92512559/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to