Hi Jim, Thanks for the reply. I checked the source code and the change is included. Do we have a list for the NIC drivers that support interrupt mode?
Regards, Xiaodong On Wed, Jul 20, 2022 at 1:16 PM Jim Thompson via lists.fd.io <jim= netgate....@lists.fd.io> wrote: > the other thing to note is that not all NIC drivers support setting > interrupt and/or adaptive mode. > > You should also ensure that you have > I2e502306e27bd98f8037d1a0a396201e099b50b5 > > On Wed, Jul 20, 2022 at 2: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 (#21697): https://lists.fd.io/g/vpp-dev/message/21697 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] -=-=-=-=-=-=-=-=-=-=-=-