hw-tc-offload

[root@localhost vpp]# ethtool -k enp125s0f0 | grep  hw-tc-offload
hw-tc-offload: off [fixed]
[root@localhost vpp]#
[root@localhost vpp]# ethtool -k enp125s0f0 | grep  hw-tc-offload
hw-tc-offload: off [fixed]
[root@localhost vpp]#
[root@localhost vpp]# tc action help
usage: tc actions <ACTSPECOP>*
Where:  ACTSPECOP := ACR | GD | FL
        ACR := add | change | replace <ACTSPEC>*
        GD := get | delete | <ACTISPEC>*
        FL := ls | list | flush | <ACTNAMESPEC>
        ACTNAMESPEC :=  action <ACTNAME>
        ACTISPEC := <ACTNAMESPEC> <INDEXSPEC>
        ACTSPEC := action <ACTDETAIL> [INDEXSPEC]
        INDEXSPEC := index <32 bit indexvalue>
        ACTDETAIL := <ACTNAME> <ACTPARAMS>
                Example ACTNAME is gact, mirred, bpf, etc
                Each action has its own parameters (ACTPARAMS)

[root@localhost vpp]# tc qdisc help
Usage: tc qdisc [ add | del | replace | change | show ] dev STRING
       [ handle QHANDLE ] [ root | ingress | clsact | parent CLASSID ]
       [ estimator INTERVAL TIME_CONSTANT ]
       [ stab [ help | STAB_OPTIONS] ]
       [ [ QDISC_KIND ] [ help | OPTIONS ] ]

       tc qdisc show [ dev STRING ] [ ingress | clsact ]
Where:
QDISC_KIND := { [p|b]fifo | tbf | prio | cbq | red | etc. }
OPTIONS := ... try tc qdisc add <desired QDISC_KIND> help
STAB_OPTIONS := ... try tc qdisc add stab help
[root@localhost vpp]# 
# grep IOMMU /boot/config-`uname -r` | grep INTEL
CONFIG_INTEL_IOMMU=y

# vi /etc/default/grub
GRUB_CMDLINE_LINUX="intel_iommu=on iommu=pt"

# update-grub
# dmesg | grep IOMMU
[    0.004000] DMAR-IR: IOAPIC id 12 under DRHD base  0xfbffc000 IOMMU 2
[    0.004000] DMAR-IR: IOAPIC id 11 under DRHD base  0xd8ffc000 IOMMU 1
[    0.004000] DMAR-IR: IOAPIC id 10 under DRHD base  0xb5ffc000 IOMMU 0
[    0.004000] DMAR-IR: IOAPIC id 8 under DRHD base  0x92ffc000 IOMMU 3
[    0.004000] DMAR-IR: IOAPIC id 9 under DRHD base  0x92ffc000 IOMMU 3
[root@localhost vpp]# grep IOMMU /boot/config-`uname -r`
CONFIG_IOMMU_HELPER=y
CONFIG_VFIO_IOMMU_TYPE1=m
CONFIG_VFIO_NOIOMMU=y
CONFIG_IOMMU_API=y
CONFIG_IOMMU_SUPPORT=y
# Generic IOMMU Pagetable Support
CONFIG_IOMMU_IO_PGTABLE=y
CONFIG_IOMMU_IO_PGTABLE_LPAE=y
# CONFIG_IOMMU_IO_PGTABLE_LPAE_SELFTEST is not set
# CONFIG_IOMMU_IO_PGTABLE_ARMV7S is not set
CONFIG_IOMMU_IOVA=y
CONFIG_OF_IOMMU=y
CONFIG_IOMMU_DMA=y
# CONFIG_QCOM_IOMMU is not set
[root@localhost vpp]# 
[root@localhost vpp]# lspci -D | grep HNS
0000:7d:00.0 Ethernet controller: Huawei Technologies Co., Ltd. HNS GE/10GE/25GE RDMA Network Controller (rev 21)
0000:7d:00.1 Ethernet controller: Huawei Technologies Co., Ltd. HNS GE/10GE/25GE Network Controller (rev 21)
0000:7d:00.2 Ethernet controller: Huawei Technologies Co., Ltd. HNS GE/10GE/25GE RDMA Network Controller (rev 21)
0000:7d:00.3 Ethernet controller: Huawei Technologies Co., Ltd. HNS GE/10GE/25GE Network Controller (rev 21)
[root@localhost vpp]#
[root@localhost vpp]# lshw -class network -businfo
Bus info          Device      Class          Description
========================================================
pci@0000:05:00.0              network        Hi1822 Family (2*25GE)
pci@0000:06:00.0              network        Hi1822 Family (2*25GE)
pci@0000:7d:00.0  enp125s0f0  network        HNS GE/10GE/25GE RDMA Network Controller
pci@0000:7d:00.1  enp125s0f1  network        HNS GE/10GE/25GE Network Controller
pci@0000:7d:00.2  enp125s0f2  network        HNS GE/10GE/25GE RDMA Network Controller
pci@0000:7d:00.3  enp125s0f3  network        HNS GE/10GE/25GE Network Controller
                  ns7_tap     network        Ethernet interface
                  vxlan0      network        Ethernet interface
                  ns8_tap     network        Ethernet interface
                  vpp0        network        Ethernet interface
                  ns1_tap     network        Ethernet interface
[root@localhost vpp]# 
[root@localhost vpp]# tc -s monitor


^C

 hw-tc-offload

 

 

[root@localhost vpp]# tc -s filter show dev enp125s0f0   ingress

hw-tc-offload

 

上一篇:vpp cmd


下一篇:LeetCode 514. *之路