码迷,mamicode.com
首页 > 其他好文 > 详细

hw-tc-offload

时间:2020-04-29 13:01:22      阅读:114      评论:0      收藏:0      [点我收藏+]

标签:def   delete   change   where   tap   inter   div   features   detail   

[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

 技术图片

 

 

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

技术图片

 

[root@localhost pci]# pwd
/sys/bus/pci
[root@localhost pci]# cd devices/0000:41:00.1
[root@localhost 0000:41:00.1]# ls
aer_dev_correctable       device            local_cpulist   ptp                      sriov_stride
aer_dev_fatal             devspec           local_cpus      remove                   sriov_totalvfs
aer_dev_nonfatal          dma_mask_bits     max_link_speed  rescan                   sriov_vf_device
ari_enabled               driver            max_link_width  reset                    subsystem
broken_parity_status      driver_override   modalias        resource                 subsystem_device
class                     enable            msi_bus         resource0                subsystem_vendor
config                    infiniband        msi_irqs        revision                 uevent
consistent_dma_mask_bits  infiniband_mad    net             rom                      vendor
current_link_speed        infiniband_srp    numa_node       sriov_drivers_autoprobe  vpd
current_link_width        infiniband_verbs  pools           sriov_numvfs
d3cold_allowed            irq               power           sriov_offset
[root@localhost 0000:41:00.1]# cat net/
cat: net/: Is a directory
[root@localhost 0000:41:00.1]# ls net/
enp65s0f1
[root@localhost 0000:41:00.1]# pwd
/sys/bus/pci/devices/0000:41:00.1
[root@localhost 0000:41:00.1]# lspci -D | grep -i mell
0000:41:00.0 Ethernet controller: Mellanox Technologies MT27700 Family [ConnectX-4]
0000:41:00.1 Ethernet controller: Mellanox Technologies MT27700 Family [ConnectX-4]
[root@localhost 0000:41:00.1]# 
[root@localhost 0000:41:00.1]#  ethtool -k enp65s0f1 | grep  hw-tc-offload
hw-tc-offload: off [fixed]
[root@localhost 0000:41:00.1]#  ethtool -k enp65s0f1   hw-tc-offload on
ethtool: bad command line argument(s)
For more information run ethtool -h
[root@localhost 0000:41:00.1]#  ethtool -K enp65s0f1   hw-tc-offload on
Could not change any device features
[root@localhost 0000:41:00.1]#  ethtool -K enp65s0f1   hw-tc-offload on

 

hw-tc-offload

标签:def   delete   change   where   tap   inter   div   features   detail   

原文地址:https://www.cnblogs.com/dream397/p/12801175.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!